nix-bitcoin-services: add nb-services.privileged helper
This commit is contained in:
parent
f00d1d24c5
commit
263525d724
@ -4,7 +4,7 @@
|
|||||||
lib: pkgs:
|
lib: pkgs:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
{
|
let self = {
|
||||||
# These settings roughly follow systemd's "strict" security profile
|
# These settings roughly follow systemd's "strict" security profile
|
||||||
defaultHardening = {
|
defaultHardening = {
|
||||||
PrivateTmp = "true";
|
PrivateTmp = "true";
|
||||||
@ -56,10 +56,13 @@ with lib;
|
|||||||
${src}
|
${src}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Used for ExecStart*
|
||||||
|
privileged = src: "+${self.script src}";
|
||||||
|
|
||||||
cliExec = mkOption {
|
cliExec = mkOption {
|
||||||
# Used by netns-isolation to execute the cli in the service's private netns
|
# Used by netns-isolation to execute the cli in the service's private netns
|
||||||
internal = true;
|
internal = true;
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "exec";
|
default = "exec";
|
||||||
};
|
};
|
||||||
}
|
}; in self
|
||||||
|
Loading…
Reference in New Issue
Block a user