switch to nixos-rebuild-ng for updating

This commit is contained in:
Jörg Thalheim 2025-03-22 08:48:56 +01:00
parent 2d7287fade
commit 36192b2a1a
2 changed files with 3 additions and 2 deletions

View File

@ -46,6 +46,7 @@
[
pkgs.bashInteractive
pkgs.sops
pkgs.nixos-rebuild-ng
(pkgs.opentofu.withPlugins (
p:
builtins.map convert2Tofu [

View File

@ -10,6 +10,6 @@ nixBuild() {
fi
}
nixBuild .#checks.x86_64-linux.test .#nixosConfigurations.nixos-wiki-nixos-org.config.system.build.toplevel -L
if ! nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org; then
nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org
if ! nixos-rebuild-ng switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org; then
nixos-rebuild-ng switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org
fi