From f21abed131198355b7623613472dd30330155d28 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Fri, 21 Feb 2014 12:40:05 +0100 Subject: [PATCH] nixos: Assign uid/gid to dictd's service user. --- nixos/modules/misc/ids.nix | 2 ++ nixos/modules/services/misc/dictd.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index 7e4c9b9b948..95b7683ba2f 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -113,6 +113,7 @@ munin = 102; logcheck = 103; nix-ssh = 104; + dictd = 105; # When adding a uid, make sure it doesn't match an existing gid. @@ -204,6 +205,7 @@ connman = 94; munin = 95; keys = 96; + dictd = 105; # When adding a gid, make sure it doesn't match an existing uid. diff --git a/nixos/modules/services/misc/dictd.nix b/nixos/modules/services/misc/dictd.nix index b84fbb3e128..fd68f847010 100644 --- a/nixos/modules/services/misc/dictd.nix +++ b/nixos/modules/services/misc/dictd.nix @@ -43,10 +43,12 @@ with pkgs.lib; group = "dictd"; description = "DICT.org dictd server"; home = "${dictdb}/share/dictd"; + uid = config.ids.uids.dictd; }; users.extraGroups = singleton { name = "dictd"; + gid = config.ids.gids.dictd; }; jobs.dictd =