Forward arguments through update alias to nixos-rebuild

Allows passing flags like --refresh to both build and switch steps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-13 19:43:32 +01:00
parent 0859c6c28d
commit 7a6ee02360

View file

@ -74,7 +74,7 @@
# Shell aliases (work in both bash and fish)
environment.shellAliases = {
update = "bash -c 'OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild build --flake github:ediblerope/nixos-config && sudo nixos-rebuild switch --flake github:ediblerope/nixos-config && nvd diff $OLD_SYSTEM /run/current-system'";
update = "bash -c 'OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild build $@ --flake github:ediblerope/nixos-config && sudo nixos-rebuild switch $@ --flake github:ediblerope/nixos-config && nvd diff $OLD_SYSTEM /run/current-system' --";
clean = "sudo nix-collect-garbage -d";
ll = "ls -alh";
clear = "command clear";