Unverified Commit 4a359e21 authored by asymmetric's avatar asymmetric Committed by GitHub
Browse files

Merge pull request #250810 from asonix/btrbk-fix-btrfs-path

nixos/btrbk: fix btrfs path for passwordless execution
parents a2093035 a8c1811b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ in
            { command = "${pkgs.coreutils}/bin/mkdir"; options = [ "NOPASSWD" ]; }
            { command = "${pkgs.coreutils}/bin/readlink"; options = [ "NOPASSWD" ]; }
            # for ssh, they are not the same than the one hard coded in ${pkgs.btrbk}
            { command = "/run/current-system/bin/btrfs"; options = [ "NOPASSWD" ]; }
            { command = "/run/current-system/sw/bin/btrfs"; options = [ "NOPASSWD" ]; }
            { command = "/run/current-system/sw/bin/mkdir"; options = [ "NOPASSWD" ]; }
            { command = "/run/current-system/sw/bin/readlink"; options = [ "NOPASSWD" ]; }
            ];
@@ -182,7 +182,7 @@ in
            (doasCmdNoPass "${pkgs.coreutils}/bin/mkdir")
            (doasCmdNoPass "${pkgs.coreutils}/bin/readlink")
            # for ssh, they are not the same than the one hard coded in ${pkgs.btrbk}
            (doasCmdNoPass "/run/current-system/bin/btrfs")
            (doasCmdNoPass "/run/current-system/sw/bin/btrfs")
            (doasCmdNoPass "/run/current-system/sw/bin/mkdir")
            (doasCmdNoPass "/run/current-system/sw/bin/readlink")