From 6214e63261458ac938341418933652bf4a9f2bf3 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 18 Jan 2025 14:58:33 -0800 Subject: [PATCH] fix: correct doas wrapper for nh clean all --- hm/modules/linux/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hm/modules/linux/default.nix b/hm/modules/linux/default.nix index df67904..d5ce946 100755 --- a/hm/modules/linux/default.nix +++ b/hm/modules/linux/default.nix @@ -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