Allow for passing arguments to nixos
task
This commit is contained in:
parent
53ead53af2
commit
d0c6fe0002
4
run
4
run
|
@ -22,8 +22,10 @@ function nixos {
|
||||||
|
|
||||||
local profile="${1}"
|
local profile="${1}"
|
||||||
local command="${2}"
|
local command="${2}"
|
||||||
|
shift 2
|
||||||
|
|
||||||
sudo nixos-rebuild "${command}" --flake ".#${profile}"
|
sudo nixos-rebuild "${command}" \
|
||||||
|
--flake ".#${profile}" "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Update the Nix Flake.
|
# Update the Nix Flake.
|
||||||
|
|
Loading…
Reference in a new issue