Skip to content

Commit

Permalink
change systemd service from root to user account (#113)
Browse files Browse the repository at this point in the history
Co-authored-by: Skarlett <[email protected]>
  • Loading branch information
Skarlett and Skarlett authored Sep 10, 2023
1 parent 2d5cff4 commit 80f33d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
environmentFile = mkOption {
type = types.path;
};

};

config = mkIf cfg.enable {
Expand All @@ -114,6 +115,7 @@
serviceConfig.EnvironmentFile = cfg.environmentFile;
serviceConfig.ExecStart = "${self.outputs.packages."${pkgs.system}".coggiebot-stable}/bin/coggiebot";
serviceConfig.Restart = "on-failure";
serviceConfig.User = "coggiebot";
};
};
};
Expand Down

0 comments on commit 80f33d3

Please sign in to comment.