ntfy-client: moved to user services
This commit is contained in:
parent
ebfaa0e940
commit
ce924a7516
|
@ -55,7 +55,7 @@ lib.mkMerge [
|
||||||
NTFY_CONFIG = configPath;
|
NTFY_CONFIG = configPath;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.ntfy-client = {
|
systemd.user.services.ntfy-client = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
@ -72,8 +72,8 @@ lib.mkMerge [
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.ntfy-sh}/bin/ntfy --debug subscribe --config /etc/ntfy/client.yml --from-config";
|
ExecStart = "${pkgs.ntfy-sh}/bin/ntfy --debug subscribe --config /etc/ntfy/client.yml --from-config";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
User = config.profile.user.uid;
|
# User = config.profile.user.uid;
|
||||||
Group = config.profile.user.gid;
|
# Group = config.profile.user.gid;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue