Skip to content

Commit

Permalink
fix module
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Sep 7, 2024
1 parent a0b5758 commit ee2aed8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -97,8 +103,8 @@ in
serviceConfig = {
ExecStart = "${cfg.package}/bin/gobot";
Restart = "always";
User = "gobot";
Group = "gobot";
User = cfg.user;
Group = defaultUser;
};

environment = mkMerge [
Expand Down

0 comments on commit ee2aed8

Please sign in to comment.