From b5719792cfe8c1f16b48ffb73a085b20d1505f48 Mon Sep 17 00:00:00 2001 From: samoht9277 Date: Wed, 7 Feb 2024 12:31:33 -0300 Subject: [PATCH] Moved bootctl. --- nixos-infect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos-infect b/nixos-infect index ccd52e3..34d8e69 100644 --- a/nixos-infect +++ b/nixos-infect @@ -378,8 +378,6 @@ infect() { # shellcheck disable=SC1090 source ~/.nix-profile/etc/profile.d/nix.sh - bootctl install --graceful # Add necessary boot files. - [[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-23.05" nix-channel --remove nixpkgs nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos @@ -429,6 +427,8 @@ infect() { find /boot -depth ! -path /boot -exec rm -rf {} + fi /nix/var/nix/profiles/system/bin/switch-to-configuration boot + + bootctl install --graceful # Add necessary boot files. } [ "$PROVIDER" = "digitalocean" ] && doNetConf=y # digitalocean requires detailed network config to be generated