mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
fix: formatting in hardware-configuration bootstrp
This commit is contained in:
parent
e089a7d604
commit
e354cfe976
2 changed files with 2 additions and 0 deletions
|
|
@ -2879,6 +2879,7 @@ This program sets up a new NixOS host.
|
||||||
if yes_or_no "You can now commit and push the nix-config, which includes the hardware-configuration.nix for $target_hostname?"; then
|
if yes_or_no "You can now commit and push the nix-config, which includes the hardware-configuration.nix for $target_hostname?"; then
|
||||||
cd "${git_root}"
|
cd "${git_root}"
|
||||||
deadnix hosts/nixos/"$target_hostname"/hardware-configuration.nix -qe
|
deadnix hosts/nixos/"$target_hostname"/hardware-configuration.nix -qe
|
||||||
|
nixpkgs-fmt hosts/nixos/"$target_hostname"/hardware-configuration.nix
|
||||||
(pre-commit run --all-files 2> /dev/null || true) &&
|
(pre-commit run --all-files 2> /dev/null || true) &&
|
||||||
git add "$git_root/hosts/$target_hostname/hardware-configuration.nix" && (git commit -m "feat: hardware-configuration.nix for $target_hostname" || true) && git push
|
git add "$git_root/hosts/$target_hostname/hardware-configuration.nix" && (git commit -m "feat: hardware-configuration.nix for $target_hostname" || true) && git push
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -252,6 +252,7 @@ fi
|
||||||
if yes_or_no "You can now commit and push the nix-config, which includes the hardware-configuration.nix for $target_hostname?"; then
|
if yes_or_no "You can now commit and push the nix-config, which includes the hardware-configuration.nix for $target_hostname?"; then
|
||||||
cd "${git_root}"
|
cd "${git_root}"
|
||||||
deadnix hosts/nixos/"$target_hostname"/hardware-configuration.nix -qe
|
deadnix hosts/nixos/"$target_hostname"/hardware-configuration.nix -qe
|
||||||
|
nixpkgs-fmt hosts/nixos/"$target_hostname"/hardware-configuration.nix
|
||||||
(pre-commit run --all-files 2> /dev/null || true) &&
|
(pre-commit run --all-files 2> /dev/null || true) &&
|
||||||
git add "$git_root/hosts/$target_hostname/hardware-configuration.nix" && (git commit -m "feat: hardware-configuration.nix for $target_hostname" || true) && git push
|
git add "$git_root/hosts/$target_hostname/hardware-configuration.nix" && (git commit -m "feat: hardware-configuration.nix for $target_hostname" || true) && git push
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue