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
|
configuration appended to the default or overridden configuration
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
workdir = mkOption {
|
||||||
|
default = "/var/lib/Reaktor";
|
||||||
|
type = types.str;
|
||||||
|
description = ''
|
||||||
|
Reaktor working directory
|
||||||
|
'';
|
||||||
|
};
|
||||||
extraEnviron = mkOption {
|
extraEnviron = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
|
@ -91,7 +99,7 @@ let
|
||||||
# uid = config.ids.uids.Reaktor;
|
# uid = config.ids.uids.Reaktor;
|
||||||
uid = 2066439104; #genid Reaktor
|
uid = 2066439104; #genid Reaktor
|
||||||
description = "Reaktor user";
|
description = "Reaktor user";
|
||||||
home = "/var/lib/Reaktor";
|
home = cfg.workdir;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -113,6 +121,7 @@ let
|
||||||
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
REAKTOR_NICKNAME = cfg.nickname;
|
REAKTOR_NICKNAME = cfg.nickname;
|
||||||
REAKTOR_DEBUG = (if cfg.debug then "True" else "False");
|
REAKTOR_DEBUG = (if cfg.debug then "True" else "False");
|
||||||
|
state_dir = cfg.workdir;
|
||||||
} // cfg.extraEnviron;
|
} // cfg.extraEnviron;
|
||||||
serviceConfig= {
|
serviceConfig= {
|
||||||
ExecStartPre = pkgs.writeScript "Reaktor-init" ''
|
ExecStartPre = pkgs.writeScript "Reaktor-init" ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user