From e1f1187a6215c7dd085a6f85c2fdd437b79f0e5b Mon Sep 17 00:00:00 2001 From: samoht9277 Date: Wed, 7 Feb 2024 12:22:48 -0300 Subject: [PATCH] Moved bootctl. --- nixos-infect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos-infect b/nixos-infect index d08ddb5..ccd52e3 100644 --- a/nixos-infect +++ b/nixos-infect @@ -375,11 +375,11 @@ infect() { curl -L https://nixos.org/nix/install | sh -s -- --no-channel-add - bootctl install --graceful # Add necessary boot files. - # 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