This repo contains the NixOS and Home Manager configuration for my desktop,
laptop and euclid server.
If you want to use parts of it, check the hardware settings, disk layouts and secrets first. Those are configured for these machines, so they will need changes before using them on another system.
Machines #
| Host | Purpose | Configuration |
|---|---|---|
desktop |
Desktop | Desktop configuration |
laptop |
Laptop | Laptop configuration |
euclid |
Homelab server | Server configuration |
Configuration #
The desktop and laptop use Hyprland with UWSM, Noctalia Shell and tuigreet.
Stylix handles theming, and the application configuration includes Zen Browser,
Neovim, Fish and the other programs in modules/programs/.
The server configuration includes Traefik, Authentik, WireGuard and CrowdSec,
with databases, notifications and container services. The server's service
imports are in
modules/hosts/euclid/default.nix.
Disko defines the disk layouts in
modules/profiles/partitioning/. Secrets
are stored in secrets.yaml and loaded through SOPS Nix. The system expects an
existing Age key at /var/lib/sops-nix/key.txt; it does not generate one.
Layout #
| Path | What is there |
|---|---|
.tack/ |
Generated tack pins, lock file and resolver |
.tangled/ |
Tangled CI workflows for checks and pin updates |
assets/ |
README images |
keys/ |
Public PGP key used to encrypt the secrets |
lib/ |
Helper functions used by the modules |
modules/desktop/ |
Hyprland, Noctalia, login and desktop settings |
modules/development/ |
Development shell and formatter configuration |
modules/hosts/ |
Host configuration and hardware settings |
modules/nix/ |
Nix, Home Manager, secrets, boot and input configuration |
modules/pkgs/ |
Local packages, overlays and helper scripts |
modules/profiles/ |
Base, personal, server and gaming profiles, partitioning and theming |
modules/programs/ |
Application and shell configuration |
modules/services/ |
Networking, security, storage and server services |
AGENTS.md |
Comment and let ordering rules for Nix files |
flake.nix |
Flake entry point, loads the tack pins and modules/ |
secrets.yaml |
SOPS-encrypted secrets, with recipients set in .sops.yaml |
vars.nix |
Shared user, locale and domain settings |
Making changes #
For a machine-specific change, start in modules/hosts/.
The desktop and laptop import the personal and gaming profiles; euclid
imports server. The profiles select the application and service modules for
each setup.
The flake uses flake-parts and import-tree to load the files under
modules/. Defining a named NixOS or Home Manager module does not enable it;
it still needs to be imported by a host or profile.
Inputs are pinned with tack instead of
flakes. Each module declares the inputs it uses through flake-file, and
the core ones are in modules/nix/dendritic.nix.
Run tack update to update the pins, or tack update nixpkgs for specific
ones. After adding or removing an input, run nix run .#write-tack to
regenerate .tack/pins.toml rather than editing it by hand.