diff options
author | Martin Fischer <martin@push-f.com> | 2025-09-20 12:03:48 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-09-20 14:40:47 +0200 |
commit | 13b041e800549de30380c637cb1ba4c1494ae5c2 (patch) | |
tree | be7ec9a0cbb14d2e0b8dbdff054fe70c57f9af8b | |
parent | b2df6ac72a41ed2a90df07bec50c638dee7ac6e5 (diff) |
chore: format rebuild
-rwxr-xr-x | nixos/rebuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/rebuild b/nixos/rebuild index 1bc6c39..3dfbf71 100755 --- a/nixos/rebuild +++ b/nixos/rebuild @@ -7,12 +7,12 @@ cd "$(dirname -- "${BASH_SOURCE[0]}")" configPath=$(realpath -- "hosts/$HOSTNAME/default.nix") if [ ! -f $configPath ]; then - echo "aborting: $configPath doesn't exist" - exit 1 + echo "aborting: $configPath doesn't exist" + exit 1 fi nix-eval() { - nix-instantiate --eval --raw --read-write-mode "$@" + nix-instantiate --eval --raw --read-write-mode "$@" } channel=$(nix-eval --argstr host "$HOSTNAME" --expr '{host}: @@ -21,7 +21,11 @@ let in (builtins.fromTOML toml).channel ') -nixpkgsPath=$(nix-eval --argstr channel "$channel" --expr '{channel}: (import ./npins).${channel}.outPath') +nixpkgsPath=$( + nix-eval \ + --argstr channel "$channel" \ + --expr '{channel}: (import ./npins).${channel}.outPath' +) # nixos-rebuild always reads Nixpkgs from the NIX_PATH, # so we need to set it explicitly to our pinned version |