Updated script to allow for upgrade to 24.05
This commit is contained in:
Kurtis Andrews
2024-06-29 16:29:15 +10:00
parent 7337d77780
commit 7b30bcfa5c
5 changed files with 15 additions and 4 deletions

View File

@@ -23,5 +23,5 @@
# Docker
virtualisation.docker.enable = true;
system.stateVersion = "23.11"; # Did you read the comment?
system.stateVersion = "24.5"; # Did you read the comment?
}

View File

@@ -52,6 +52,6 @@
];
};
};
system.stateVersion = "23.05"; # Did you read the comment?
system.stateVersion = "24.05"; # Did you read the comment?
}

View File

@@ -58,6 +58,17 @@ start () {
doBuild () {
logo
# Upgrading os if old version
CURVER=$(cat /etc/os-release | grep VERSION_ID | cut -d'"' -f 2)
if [$CURVER == "23.11"]
then
echo Found that you are running 22.11, upgrading to 24.05
nix-channel --add https://channels.nixos.org/nixos-24.05 nixos
fi
if [$CURVER == "24.05"]
then
echo Running 24.05. Awesome!
fi
sudo nixos-rebuild switch -I nixos-config=$scriptDIR/$hostname.nix --upgrade
echo Finished .. press any key to continue
read -n 1

View File

@@ -16,6 +16,6 @@
networking.hostName = "w00072"; # Define your hostname.
system.stateVersion = "23.11"; # Did you read the comment?
system.stateVersion = "24.05"; # Did you read the comment?
}

View File

@@ -16,6 +16,6 @@
networking.hostName = "w00149"; # Define your hostname.
system.stateVersion = "23.11"; # Did you read the comment?
system.stateVersion = "24.05"; # Did you read the comment?
}