This setup is for the LiveCD GNOME installation.
Open the terminal with Console and enter the following:
github='https://raw.githubusercontent.com/mkamsani/CSIT321-FYP-Nix/main/'
cd /etc/nixos
sudo cp configuration.nix configuration.nix.bak
sudo curl $github/configuration.nix
You should see the output of a configuration file.
Next, we download the file into /etc/nixos directory. In the same terminal:
sudo rm -f configuration.nix
sudo curl -o $HOME/.p10k.zsh $github/.p10k.zsh
sudo curl -o configuration.nix $github/configuration.nix
sudo nixos-rebuild switch
NixOS will fetch the required packages, and build the system based on the configuration file.
You might see the following output during the build:
trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05
This is not caused by the configuration, the warning will disappear in a future update:
Reboot the system, open the terminal again:
sudo nix-collect-garbage --delete-old
This removes unused packages from the system.
To add/remove packages or modify your configuration,
edit the /etc/nixos/configuration.nix
file.