1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Fix rebuild.nu

This commit is contained in:
RGBCube 2024-01-17 16:02:37 +03:00
parent 3819884c74
commit 2c13a38cce
No known key found for this signature in database

View file

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