mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Fix rebuild.nu
This commit is contained in:
parent
3819884c74
commit
2c13a38cce
1 changed files with 2 additions and 1 deletions
|
@ -10,11 +10,12 @@ def main --wrapped [
|
|||
] {
|
||||
let flags = [
|
||||
$"--flake ('.#' + $host)"
|
||||
"--show-trace"
|
||||
"--option accept-flake-config true"
|
||||
"--log-format internal-json"
|
||||
] | append $arguments
|
||||
|
||||
if $host == (hostname) {
|
||||
if $host == (hostname) or $host == "" {
|
||||
sudo sh -c $"nixos-rebuild switch ($flags | str join ' ') |& nom --json"
|
||||
} else {
|
||||
git ls-files | tar -cf - --files-from - | zstd -c3 | save --force /tmp/config.tar.zst
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue