m 3 Reaktor: add workdir/state_dir
This commit is contained in:
parent
70264d1e46
commit
cef2be532b
|
@ -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" ''
|
||||
|
|
Loading…
Reference in a new issue