diff options
| author | LLLL Colonq <llll@colonq> | 2025-12-17 05:17:15 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-12-17 05:17:15 -0500 |
| commit | b98fd2e34eb93b22c86136a93964c176acc8b290 (patch) | |
| tree | 21d40d46ad97c89e9040edfd9f65b8c13f0bf28b /flake.nix | |
| parent | e4b23e0478ff69998049de1792d5d56fb79a3d24 (diff) | |
Don't use isolated service
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -338,18 +338,16 @@ }; }; config = lib.mkIf cfg.enable { + users.users.fig = { + isSystemUser = true; + group = "fig"; + }; systemd.services."colonq.fig-web" = { wantedBy = ["multi-user.target"]; serviceConfig = { + User = "fig"; Restart = "on-failure"; ExecStart = "${haskellPackages.fig-web}/bin/fig-web public --bus-host ${cfg.busHost} --bus-port ${toString cfg.busPort} --config ${cfg.configFile}"; - DynamicUser = "yes"; - RuntimeDirectory = "colonq.fig-web"; - RuntimeDirectoryMode = "0755"; - StateDirectory = "colonq.fig-web"; - StateDirectoryMode = "0700"; - CacheDirectory = "colonq.fig-web"; - CacheDirectoryMode = "0750"; }; }; }; |
