1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-08-01 12:37:46 +00:00

Make it pure!

This commit is contained in:
RGBCube 2023-12-11 22:47:54 +03:00
parent e3f54aa93a
commit 617601cb13
No known key found for this signature in database
5 changed files with 33 additions and 7 deletions

View file

@ -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"
}