diff options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/misc/ids.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/search/elasticsearch.nix | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index 8da4214476245..581cd4fb631fa 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -370,7 +370,7 @@ quassel = 89; amule = 90; minidlna = 91; - #elasticsearch = 92; # unused + elasticsearch = 92; #tcpcryptd = 93; # unused connman = 94; firebird = 95; diff --git a/nixos/modules/services/search/elasticsearch.nix b/nixos/modules/services/search/elasticsearch.nix index 17ac8fe7e2450..9299aaac2f70e 100644 --- a/nixos/modules/services/search/elasticsearch.nix +++ b/nixos/modules/services/search/elasticsearch.nix @@ -157,11 +157,14 @@ in { environment.systemPackages = [ cfg.package ]; - users.extraUsers = singleton { - name = "elasticsearch"; - uid = config.ids.uids.elasticsearch; - description = "Elasticsearch daemon user"; - home = cfg.dataDir; + users = { + groups.elasticsearch.gid = config.ids.gids.elasticsearch; + users.elasticsearch = { + uid = config.ids.uids.elasticsearch; + description = "Elasticsearch daemon user"; + home = cfg.dataDir; + group = "elasticsearch"; + }; }; }; } |