mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-19 05:32:10 -08:00
fix: correct doas wrapper for nh clean all
This commit is contained in:
parent
39c39ce433
commit
6214e63261
1 changed files with 3 additions and 1 deletions
|
@ -27,8 +27,10 @@
|
|||
body = ''
|
||||
if count $argv > /dev/null
|
||||
set subcommand (string join " " $argv)
|
||||
if contains -- $subcommand "os switch" "os test" "os boot" "clean all"
|
||||
if contains -- $subcommand "os switch" "os test" "os boot"
|
||||
doas ${pkgs.nh}/bin/nh $argv -R
|
||||
else if contains -- $subcommand "clean all"
|
||||
doas ${pkgs.nh}/bin/nh $argv
|
||||
else
|
||||
${pkgs.nh}/bin/nh $argv
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue