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}
'';
user = "syncserver";
group = "syncserver";
in
{
@ -126,10 +128,7 @@ in
config = mkIf cfg.enable {
systemd.services.syncserver = let
user = "syncserver";
group = "syncserver";
in {
systemd.services.syncserver = {
after = [ "network.target" ];
description = "Firefox Sync Server";
wantedBy = [ "multi-user.target" ];
@ -174,11 +173,11 @@ in
'';
};
users.users.syncserver = {
group = "syncserver";
users.users.${user} = {
inherit group;
isSystemUser = true;
};
users.groups.syncserver = {};
users.groups.${group} = {};
};
}