My nix config for NixOS and Home Manager (NixOS module and standalone options).
Note: This uses Colemak-DH-ISO keyboard layout by default.
Related files: keyboard.nix
Warning
Do not use this flake if you don't know how to use NixOS. You will end up with a broken generation because of the hardware specific files.
Important
If you reinstall NixOS with encryption, you will need to copy the hardware-configuration.nix file from /etc/nixos/hardware-configuration.nix to the profile directory and update the UUIDs in host/{profile}/default.nix or you won't be able to boot.
Note
You need to add --impure flag if you are using an Asahi profile, because the flake references external firmware directory.
sudo NIX_CONFIG="experimental-features = nix-command flakes" \
nixos-rebuild switch --flake github:jaycem-dev/nix#profileReplace profile with one of the profiles below.
Available profiles (defined in flake.nix):
| NixOS (with HM as module) | Home Manager standalone |
|---|---|
| desktop | TODO |
| asahi (arm64) |
- Compositor and tools: mangowc, fuzzel, waybar, mako, swayidle, swaylock
- Main programs: kitty, fish, neovim
- Theming: stylix
