mirror of
https://github.com/RGBCube/ncc
synced 2025-08-01 12:37:46 +00:00
Make it pure!
This commit is contained in:
parent
e3f54aa93a
commit
617601cb13
5 changed files with 33 additions and 7 deletions
|
@ -8,11 +8,11 @@ def main --wrapped [
|
|||
machine: string@complete = "" # The machine to build.
|
||||
...arguments # The arguments to pass to `nix system apply`.
|
||||
] {
|
||||
let flags = $arguments | append [
|
||||
let flags = [
|
||||
$"--flake ('.#' + $machine)"
|
||||
"--option accept-flake-config true"
|
||||
"--log-format internal-json"
|
||||
"--impure"
|
||||
]
|
||||
] | append $arguments
|
||||
|
||||
sudo sh -c $"nix system apply ('.#' + $machine) ($flags | str join ' ') |& nom --json"
|
||||
sudo sh -c $"nixos-rebuild switch ($flags | str join ' ') |& nom --json"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue