Personal NixOS flake, one host, home-manager, several Wayland compositors, secrets via agenix.
nh os switch ~/nixosCheckout expected at ~/nixos.
flake.nix inputs + nixosConfigurations.nixos
modules/lysec/ shared options (username, desktop, git, noctalia)
modules/nixos/ system modules (boot, greeter, networking, …)
hosts/nixos/ host entrypoint
hardware/ hardware + storage mounts
desktops/<name>/ per-compositor nixos + home
home/ shared HM (programs auto-imported, editors, shell)
secrets/ encrypted .age files + recipients (secrets.nix)
lib/ helpers (desktops, import-programs, fluxer)
All defaults live in modules/lysec/settings.nix. To switch compositors, set lysec.desktop there:
lysec.desktop = "niri";| Option | Meaning |
|---|---|
lysec.desktop |
Active session: niri (default), hyprland, sway, labwc, mango, plasma |
lysec.git.* |
Commit identity + signing key |
lysec.username / hostname / stateVersion / system |
Host identity |
Only the chosen desktop’s desktops/<name>/nixos.nix is imported at build time.
Non-Plasma sessions use greetd + Noctalia Greeter (modules/nixos/greeter.nix). Plasma uses SDDM via desktops/plasma/nixos.nix.
| Desktop | Notes |
|---|---|
| niri | Full setup, keybinds, rules, animations, autostart |
| hyprland / sway / labwc / mango | Lighter stubs + Noctalia; mango has a custom session |
| plasma | KDE stack; Noctalia via XDG autostart after the panel |
Shared Wayland defaults (cursor, Electron/Qt hints): desktops/shared/home.nix.
home/default.nix pulls in the active desktop, Doom/VS Code, fish, and every home/programs/*.nix plus home/programs/*/default.nix.
Notable pieces: fish + tide, Firefox, Ghostty, Fluxer, Vesktop, signed git (GPG from agenix), Doom under home/doom/.
Encrypted blobs in secrets/*.age decrypt at activation to /run/agenix/. Recipients are declared in secrets/secrets.nix (host SSH pubkey + recovery age key).
cd ~/nixos/secrets
agenix -i ~/.config/age/keys.txt -e <name>.age
nh os switch ~/nixosDo not commit ~/.config/age/keys.txt. Back it up offline.
Shell and greeter are path: inputs to local checkouts under /mnt/storage/…. This repo will not evaluate elsewhere without changing those inputs to the public flakes (noctalia, noctalia-greeter).
After editing either checkout:
nix flake update noctalia noctalia-greeter
nh os switch ~/nixosnixpkgs (unstable), home-manager, niri, agenix, fluxer, swash, doomemacs, nur, plus the local Noctalia path inputs.
