summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-12-17 05:17:15 -0500
committerLLLL Colonq <llll@colonq>2025-12-17 05:17:15 -0500
commitb98fd2e34eb93b22c86136a93964c176acc8b290 (patch)
tree21d40d46ad97c89e9040edfd9f65b8c13f0bf28b /flake.nix
parente4b23e0478ff69998049de1792d5d56fb79a3d24 (diff)
Don't use isolated service
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index f006e21..df324a6 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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";
};
};
};