diff options
author | makefu <github@syntax-fehler.de> | 2015-12-26 10:44:56 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-12-26 10:44:56 +0100 |
commit | cef2be532b0cc76071b0b3515fc71214b37591f0 (patch) | |
tree | 19409b1f1ad9cd5964c12c3b78d93594542f45ee /krebs/3modules/Reaktor.nix | |
parent | 70264d1e46dc17391f0a3a590ba0749d0a93eda2 (diff) |
m 3 Reaktor: add workdir/state_dir
Diffstat (limited to 'krebs/3modules/Reaktor.nix')
-rw-r--r-- | krebs/3modules/Reaktor.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/krebs/3modules/Reaktor.nix b/krebs/3modules/Reaktor.nix index 1ec49b81e..d219d1800 100644 --- a/krebs/3modules/Reaktor.nix +++ b/krebs/3modules/Reaktor.nix @@ -62,6 +62,14 @@ let configuration appended to the default or overridden configuration ''; }; + + workdir = mkOption { + default = "/var/lib/Reaktor"; + type = types.str; + description = '' + Reaktor working directory + ''; + }; extraEnviron = mkOption { default = {}; type = types.attrsOf types.str; @@ -91,7 +99,7 @@ let # uid = config.ids.uids.Reaktor; uid = 2066439104; #genid Reaktor description = "Reaktor user"; - home = "/var/lib/Reaktor"; + home = cfg.workdir; createHome = true; }; @@ -113,6 +121,7 @@ let GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; REAKTOR_NICKNAME = cfg.nickname; REAKTOR_DEBUG = (if cfg.debug then "True" else "False"); + state_dir = cfg.workdir; } // cfg.extraEnviron; serviceConfig= { ExecStartPre = pkgs.writeScript "Reaktor-init" '' |