nixos/syncserver: mild cleanup

This commit is contained in:
Nadrieril 2019-01-28 17:55:56 +01:00
parent 63c7fe0819
commit 375020cf99

View File

@ -30,6 +30,8 @@ let
audiences = ${removeSuffix "/" cfg.publicUrl} audiences = ${removeSuffix "/" cfg.publicUrl}
''; '';
user = "syncserver";
group = "syncserver";
in in
{ {
@ -126,10 +128,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
systemd.services.syncserver = let systemd.services.syncserver = {
user = "syncserver";
group = "syncserver";
in {
after = [ "network.target" ]; after = [ "network.target" ];
description = "Firefox Sync Server"; description = "Firefox Sync Server";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -174,11 +173,11 @@ in
''; '';
}; };
users.users.syncserver = { users.users.${user} = {
group = "syncserver"; inherit group;
isSystemUser = true; isSystemUser = true;
}; };
users.groups.syncserver = {}; users.groups.${group} = {};
}; };
} }