diff options
Diffstat (limited to 'bragi.nix')
-rw-r--r-- | bragi.nix | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -298,15 +298,16 @@ in rec { | |||
298 | }; | 298 | }; |
299 | 299 | ||
300 | systemd.services."bar" = { | 300 | systemd.services."bar" = { |
301 | environment = { | 301 | environment = config.nix.envVars // { |
302 | inherit (config.environment.sessionVariables) NIX_PATH; | ||
302 | PORT = "8082"; | 303 | PORT = "8082"; |
303 | PATH = "/run/current-system/sw/bin"; | ||
304 | }; | 304 | }; |
305 | requires = [ "postgresql.service" ]; | 305 | requires = [ "postgresql.service" ]; |
306 | wantedBy = [ "default.target" ]; | 306 | wantedBy = [ "default.target" ]; |
307 | path = [ config.nix.package.out ]; | ||
307 | serviceConfig = { | 308 | serviceConfig = { |
308 | Type = "simple"; | 309 | Type = "simple"; |
309 | ExecStart = ./bragi/bar.hs; | 310 | execStart = ./bragi/bar.hs; |
310 | User = users.extraUsers."bar".name; | 311 | User = users.extraUsers."bar".name; |
311 | Group = users.extraUsers."bar".group; | 312 | Group = users.extraUsers."bar".group; |
312 | WorkingDirectory = "~"; | 313 | WorkingDirectory = "~"; |