From 7b30bcfa5c60d430430dad1a3d2cb8ac51f48a9e Mon Sep 17 00:00:00 2001 From: Kurtis Andrews Date: Sat, 29 Jun 2024 16:29:15 +1000 Subject: [PATCH] Update Updated script to allow for upgrade to 24.05 --- game-serv.nix | 2 +- rock64.nix | 2 +- vargix-os | 11 +++++++++++ w00072.nix | 2 +- w00149.nix | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/game-serv.nix b/game-serv.nix index a9fc531..dd63044 100644 --- a/game-serv.nix +++ b/game-serv.nix @@ -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? } \ No newline at end of file diff --git a/rock64.nix b/rock64.nix index cb64a00..c175721 100644 --- a/rock64.nix +++ b/rock64.nix @@ -52,6 +52,6 @@ ]; }; }; - system.stateVersion = "23.05"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? } diff --git a/vargix-os b/vargix-os index 9a97b1a..59b9408 100755 --- a/vargix-os +++ b/vargix-os @@ -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 diff --git a/w00072.nix b/w00072.nix index 859af52..a6b31eb 100644 --- a/w00072.nix +++ b/w00072.nix @@ -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? } diff --git a/w00149.nix b/w00149.nix index 551d2ac..2dcf95c 100644 --- a/w00149.nix +++ b/w00149.nix @@ -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? }