justfile: pass args through to `*-rebuild`
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M justfile → justfile
@@ -6,14 +6,14 @@ build *args: home-manager switch --flake {{ flake }} {{ args }} -run action="switch": +run action="switch" *args: #!/usr/bin/env fish set --local os $(string split -- - $system)[-1] switch $os: case "darwin": - sudo darwin-rebuild {{ action }} --flake {{ flake }}#{$hostname} + sudo darwin-rebuild {{ action }} --flake {{ flake }}#{$hostname} {{ args }} case "linux": - nixos-rebuild {{ action }} --flake {{ flake }}#{$hostname} + nixos-rebuild {{ action }} --flake {{ flake }}#{$hostname} --sudo {{ args }} case *: end