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}
|
||||
#'';
|
||||
|
||||
systemd.services.gnunet = {
|
||||
description = "GNUnet";
|
||||
systemd.services.gnunet-system = {
|
||||
description = "GNUnet system services";
|
||||
after = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ cfg.package pkgs.miniupnpc ];
|
||||
|
@ -159,6 +159,15 @@ in
|
|||
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