diff --git a/modules/lnd.nix b/modules/lnd.nix index d5c29e1..bdac2f3 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -244,7 +244,7 @@ in { done '') # Setting macaroon permission for other users needs root permissions - (nbLib.privileged "lnd-create-macaroons" '' + (nbLib.rootScript "lnd-create-macaroons" '' umask ug=r,o= ${lib.concatMapStrings (macaroon: '' echo "Create custom macaroon ${macaroon}" diff --git a/pkgs/lib.nix b/pkgs/lib.nix index 660820b..09c00c0 100644 --- a/pkgs/lib.nix +++ b/pkgs/lib.nix @@ -70,7 +70,7 @@ let self = { ''; # Used for ExecStart* - privileged = name: src: "+${self.script name src}"; + rootScript = name: src: "+${self.script name src}"; cliExec = mkOption { # Used by netns-isolation to execute the cli in the service's private netns