Update
Updated script to allow for upgrade to 24.05
This commit is contained in:
@@ -23,5 +23,5 @@
|
|||||||
# Docker
|
# Docker
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "24.5"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
@@ -52,6 +52,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
vargix-os
11
vargix-os
@@ -58,6 +58,17 @@ start () {
|
|||||||
|
|
||||||
doBuild () {
|
doBuild () {
|
||||||
logo
|
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
|
sudo nixos-rebuild switch -I nixos-config=$scriptDIR/$hostname.nix --upgrade
|
||||||
echo Finished .. press any key to continue
|
echo Finished .. press any key to continue
|
||||||
read -n 1
|
read -n 1
|
||||||
|
|||||||
@@ -16,6 +16,6 @@
|
|||||||
|
|
||||||
networking.hostName = "w00072"; # Define your hostname.
|
networking.hostName = "w00072"; # Define your hostname.
|
||||||
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,6 @@
|
|||||||
|
|
||||||
networking.hostName = "w00149"; # Define your hostname.
|
networking.hostName = "w00149"; # Define your hostname.
|
||||||
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user