add user service

This commit is contained in:
lurchi 2020-03-09 17:43:20 +01:00
parent 0ce9e9e73c
commit 8fb4d54b96
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 11 additions and 2 deletions

View File

@ -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";
};
};
}