summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/editors/infinoted.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/editors/infinoted.nix')
-rw-r--r--nixos/modules/services/editors/infinoted.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/nixos/modules/services/editors/infinoted.nix b/nixos/modules/services/editors/infinoted.nix
index be3667616942..8b997ccbf66e 100644
--- a/nixos/modules/services/editors/infinoted.nix
+++ b/nixos/modules/services/editors/infinoted.nix
@@ -111,14 +111,15 @@ in {
};
config = mkIf (cfg.enable) {
- users.users = optional (cfg.user == "infinoted")
- { name = "infinoted";
- description = "Infinoted user";
- group = cfg.group;
- isSystemUser = true;
+ users.users = optionalAttrs (cfg.user == "infinoted")
+ { infinoted = {
+ description = "Infinoted user";
+ group = cfg.group;
+ isSystemUser = true;
+ };
};
- users.groups = optional (cfg.group == "infinoted")
- { name = "infinoted";
+ users.groups = optionalAttrs (cfg.group == "infinoted")
+ { infinoted = { };
};
systemd.services.infinoted =