- Mount partitions at
/mnt
nixos-generate-config --root /mnt
cp /mnt/etc/nixos/hardware-configuration.nix /etc/nixos/
nix-shell -p git
git clone <THIS_REPO_URL>
replace<THIS_REPO_URL>
with URL to this repositorycd
into repository directory cloned in previous stepsudo nixos-install --flake './#local-hardware-config' --impure
- reboot
https://search.nixos.org/packages?channel=unstable
https://search.nixos.org/options?channel=unstable
https://home-manager-options.extranix.com/?query=&release=master
https://nixpk.gs/pr-tracker.html
Nix command and flakes support has to be enabled.
mkdir -p ~/.config/nix
echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
Nix home-manager config provides cli part of config only. As gui has host system dependencies and workarounds. For GUI configuration use stow-able dotfiles.
nix run home-manager/master -- switch --flake .
To apply using go-task run task setup-dotfiles
.
Files can be applied manually too using stow, that's what aftermentioned task does.
./dotfiles regular stow-able dot files
./home nix home-manager home configuration. See it's own readme.md for detil
/hosts Contains host specific configurations.
./lib Contains function used to define nixOS systems outside of main flake module.
./modules Modules so that hosts can be made out modular parts.