add user service
This commit is contained in:
parent
0ce9e9e73c
commit
8fb4d54b96
|
@ -145,8 +145,8 @@ in
|
||||||
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${config.system.nssModules.path}
|
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${config.system.nssModules.path}
|
||||||
#'';
|
#'';
|
||||||
|
|
||||||
systemd.services.gnunet = {
|
systemd.services.gnunet-system = {
|
||||||
description = "GNUnet";
|
description = "GNUnet system services";
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ cfg.package pkgs.miniupnpc ];
|
path = [ cfg.package pkgs.miniupnpc ];
|
||||||
|
@ -159,6 +159,15 @@ in
|
||||||
serviceConfig.WorkingDirectory = homeDir;
|
serviceConfig.WorkingDirectory = homeDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.gnunet-user = {
|
||||||
|
description = "GNUnet user services";
|
||||||
|
after = [ "gnunet-system.service" ];
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
environment.TMPDIR = "/tmp";
|
||||||
|
serviceConfig.ExecStart = "${cfg.package}/lib/gnunet/libexec/gnunet-service-arm";
|
||||||
|
serviceConfig.ExecStop = "${cfg.package}/bin/gnunet-arm -e";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue