-
Make the follwing changes the default nixos config with
sudoedit /etc/nixos/configuration.nix
- Add
nix.settings.experimental-features = "nix-command flakes";
- Add
git
toenvironment.systemPackages
- Add
-
Apply the updates:
sudo nixos-rebuild switch
-
Clone this repo:
git clone https://github.com/howird/nix-config.git /home/howird/.config/nix
# or if you have your ssh keys:
git clone [email protected]:howird/nix-config /home/howird/.config/nix
- Setup your system (remember to write the correct hostname):
sudo nixos-rebuild switch --flake .#<hostname>
home-manager switch --flake .#howird@<hostname>
nixwird
nixwird-hm
- We configure most of our settings declaratively using home-manager, so to update our desktop settings, we first cache our current settings with:
dconf dump / > old-conf.txt # GNOME
nix run github:pjones/plasma-manager / > old-conf.txt # KDE Plasma
- Modify using the settings GUI, then:
dconf dump / > new-conf.txt # GNOME
nix run github:pjones/plasma-manager / > new-conf.txt # KDE Plasma
- Then compare the differences with:
code --diff old-conf.txt new-conf.txt
- Then update
gnome.nix
orkde.nix
accordingly in./home-manager/modules/desktops