My configs for NixOS
Checkout repo and set up symlink from /etc/nixos to the config for the system. E.g.
sudo mv /etc/nixos/configuration.nix /etc/nixos/configuration.original
sudo ln -s /home/<user>/projects/nixos/hosts/<host>/configuration.nix /etc/nixos/configuration.nix
cp /etc/nixos/hardware-configuration.nix */home/<user>/projects/nixos/hosts/<host>/hardware-configuration.nixCheck and update the system.stateVersion in configuration.nix to match the installation version.
Use stow to install dotfiles to home directory. E.g.
cd dotfiles
stow alacritty
stow neovim
stow starship
stow yaziTo use starship, add it to .bashrc:
eval "$(starship init bash)"sudo nix-channel --update
sudo nixos-rebuild boot(reboot)
sudo nix-collect-garbage --delete-older-than 60d
sudo nix-store --optimisesudo nix-channel --add https://channels.nixos.org/nixos-<version> nixos
sudo nix-channel --update
cd /etc/nixos
sudo nixos-rebuild boot
reboot$ sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
$ sudo nix-channel --updateIf system requires Citrix, first download the required .tar.gz file and run the following command before the installation. Note that the version must match exactly the version listed on the nixos.org package.
nix-prefetch-url file:/path/to/file.tar.gz