summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-10 01:01:15 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-10 01:01:15 +0100
commit2ead8126253b9737ec9a78e3d3d4b52904a8835c (patch)
tree8f43898ed11b3c36d57ae5653ebd14b3f161f2b0
parentc24a5e4fed251bad81ec517882fd99c918b7b5eb (diff)
downloadnixos-2ead8126253b9737ec9a78e3d3d4b52904a8835c.tar
nixos-2ead8126253b9737ec9a78e3d3d4b52904a8835c.tar.gz
nixos-2ead8126253b9737ec9a78e3d3d4b52904a8835c.tar.bz2
nixos-2ead8126253b9737ec9a78e3d3d4b52904a8835c.tar.xz
nixos-2ead8126253b9737ec9a78e3d3d4b52904a8835c.zip
Poke service config
-rw-r--r--bragi.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/bragi.nix b/bragi.nix
index 4e537696..f5774548 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -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 = "~";