Allow for passing arguments to nixos task

This commit is contained in:
Oliver Davies 2024-01-25 16:16:28 +00:00
parent 53ead53af2
commit d0c6fe0002

4
run
View file

@ -22,8 +22,10 @@ function nixos {
local profile="${1}"
local command="${2}"
shift 2
sudo nixos-rebuild "${command}" --flake ".#${profile}"
sudo nixos-rebuild "${command}" \
--flake ".#${profile}" "${@}"
}
# Update the Nix Flake.