This is my personal NixOS config. It is not guaranteed that it will work on your system.
Install the required tools
nix-env -f '<nixpkgs>' -iA git
Clone this repository
git clone https://github.com/fdiblen/NixOS-config.git
Automated partitioning is achived using disko (https://github.com/nix-community/disko).
Uncomment the device in NixOS-config/modules/partitioning/luks-btrfs.nix
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./NixOS-config/modules/partitioning/luks-btrfs.nix
sudo nixos-generate-config --no-filesystems --root /mnt
sudo nixos-install --impure --flake ./NixOS-config#worklaptop --root /mnt
Rebuild using the worklaptop configuration (hosts/worklaptop):
sudo nixos-rebuild switch --flake ./NixOS-config#worklaptop
- Make configuration.nix more modular
- Add dotfiles to home-manager
- System hardening
- Set the firewall rules
- Configure the user shell
- Automate the partitioning step
- Add zram?
sudo nix --experimental-features "nix-command flakes" run github:fdiblen/NixOS-config
Re-installing the bootloader from a running system
sudo nixos-rebuild --install-bootloader boot
see LINKS.md