diff --git a/module.nix b/module.nix index 317823a..62b3fdc 100644 --- a/module.nix +++ b/module.nix @@ -14,6 +14,12 @@ in package = mkPackageOption self.packages "gobot" { }; + user = mkOption { + type = types.str; + default = defaultUser; + description = "User under which Gobot runs."; + }; + adminId = mkOption { type = types.int; description = "Admin ID"; @@ -97,8 +103,8 @@ in serviceConfig = { ExecStart = "${cfg.package}/bin/gobot"; Restart = "always"; - User = "gobot"; - Group = "gobot"; + User = cfg.user; + Group = defaultUser; }; environment = mkMerge [