Allow for passing arguments to nixos
task
This commit is contained in:
parent
53ead53af2
commit
d0c6fe0002
1 changed files with 3 additions and 1 deletions
4
run
4
run
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue