0. Install NixOS
It's not recommended to get any desktop environment on initial installation of NixOS.
1. Install git
Open default NixOS config file and add git
to packages
sudo nano /etc/nixos/configuration.nix
Rebuild the system
sudo nixos-rebuild switch
2. Download configs
git clone https://github.com/GregoryKogan/dotfiles-nixos.git ~/nixos
3. Rebuild the system
Availabe <host>
options:
vm
- UTM virtual machine
sudo nixos-rebuild switch --impure --flake ~/nixos#<host>
Generate github ssh key and add it to your account
github-ssh
Update this repo to use ssh remote origin
git remote set-url origin [email protected]:GregoryKogan/dotfiles-nixos.git
Magic commands that sometimes fix weird errors
Collect garbage
nix-collect-garbage -d
Repair nix-store files (should be run as sudo)
nix-store --verify --check-contents --repair