all repos — nixfiles @ 24b10add354de5a9acf378b45616c27076547565

System and user configuration, managed by nix and home-manager

justfile: pass args through to `*-rebuild`

Alin
commit

24b10add354de5a9acf378b45616c27076547565

parent

6a274f64d7aa86127f293dcb8daff6422fabae26

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