My personal Nix flake dual setup for NixOS and Asahi/Fedora with standalone home-manager.
Note: This uses Colemak-DH-ISO keyboard layout by default. Edit keyboard.nix and niri.kdl before installing.
Important
Uses ~/dev/nix path (install script default).
- Compositor and tools: Niri, Fuzzel, Waybar, Mako, Hyprlock, Hypridle
- Main programs: Kitty, Fish, Neovim
- Theming: Matugen
curl -fsSL https://raw.githubusercontent.com/jaycem-dev/nix/master/install.sh | bashFor later runs, run the rebuild command for NixOS or Home Manager if using Asahi/Fedora.
This flake provides a unified configuration system that works on both NixOS and non-NixOS systems.
- NixOS: Full system rebuild with integrated home-manager
- Standalone: Home-manager only for any Linux distribution
| Directory | Description |
|---|---|
| profiles/ | System entry points - defines complete NixOS and Home Manager configurations |
| modules/nixos/ | NixOS system-level modules (boot, network, services, users, etc.) |
| modules/home/ | Home Manager user-level modules (programs, dotfiles, window managers, etc.) |
| modules/home/scripts/ | Standalone utility scripts packaged as derivations |
| modules/hosts/ | Host-specific hardware and system config (hardware-config.nix, mounts, etc.) |
- NixOS:
sudo nixos-rebuild switch --flake ~/dev/nix#nixos
- Asahi/Fedora:
home-manager switch -b backup --flake ~/dev/nix#asahinix flake updateThen run the rebuild command for NixOS or Home Manager, depending on which configuration you are using.
Useful for checking what changes will be made before switching configurations.
- NixOS:
sudo nixos-rebuild dry-activate --flake ~/dev/nix#nixos- Asahi/Fedora:
home-manager switch -b backup --dry-run --flake ~/dev/nix#asahi