my nix configs
  • Nix 53.7%
  • Python 42.1%
  • HTML 2.2%
  • Shell 1.4%
  • Rust 0.6%
Find a file
2026-08-11 07:28:47 +02:00
.secrets feat(hermes): serve dashboard through nginx 2026-08-06 11:16:35 +02:00
config fix(agents): keep codex user config mutable 2026-08-03 11:37:15 +02:00
docs docs(plans): make the journal-mcp permission check actually test something 2026-08-10 07:46:12 +02:00
lib refactor(home): collapse the duplicated home module trees into one 2026-08-09 15:28:59 +02:00
modules fix(base): stop etserver dumping core on every activation 2026-08-10 09:53:49 +02:00
overlays feat(llama-cpp): add native BF16 flash attention patch 2026-08-11 07:28:47 +02:00
packages feat(journal-mcp): let a narrow query return a whole message 2026-08-10 09:59:52 +02:00
shells feat(devshell): include all macOS-buildable packages in default shell 2026-08-05 02:25:06 +02:00
systems fix(sgx): order the MagicDNS zone after tailscaled-set so it survives 2026-08-11 07:18:39 +02:00
.gitignore chore(gitignore): add .pi-lens 2026-08-05 01:49:46 +02:00
.sops.yaml feat(hermes): serve dashboard through nginx 2026-08-06 11:16:35 +02:00
AGENTS.md chore: symlink AGENTS.md to CLAUDE.md and update commit template 2026-07-02 12:27:52 +02:00
CLAUDE.md docs: correct how nixos-upgrade decides to activate 2026-08-08 15:33:21 +02:00
flake.lock chore: nix flake update 2026-08-09 12:31:32 +02:00
flake.nix feat: add ruff-format to nix fmt for python sources 2026-08-05 02:41:30 +02:00
README.md docs: update README with project structure and instructions 2025-03-20 09:43:18 +01:00
statix.toml chore: add statix.toml suppressing repeated_keys 2026-07-04 12:17:28 +02:00

NixOS Configuration

A modular NixOS configuration setup for multiple systems.

Project Structure

  • modules/: Reusable NixOS/Darwin modules
    • common.nix: Common module imports and definitions
    • nixos/: NixOS-specific modules
      • home/: Home Manager integration for NixOS
      • nix/: Nix package manager configuration
      • nix-ld/: Dynamic linking support
      • network/: Network configuration modules
        • resolved/: DNS resolution configuration
      • security/: Security-related modules
        • ssh-host-keys/: SSH host key management
      • services/: Service configuration modules
        • base/: Basic system configuration
        • gui/: Graphical interface setup
        • homeprinter/: Home printer support
        • podman/: Container runtime
        • secureboot/: Secure boot configuration
      • sgx/: Intel SGX support
        • aesmd_dcap/: SGX AESMD DCAP service
        • pccs/: SGX Provisioning Certificate Caching Service
      • system/: System configuration modules
        • auto-upgrade/: Automatic system upgrades
        • limits/: System resource limits
        • zram/: ZRAM swap configuration
      • tools/: Common tools configuration
        • direnv/: Direnv integration
        • git/: Git configuration
      • user/: User account configuration
      • virtualization/: Virtualization support
    • home/: Home Manager modules
      • cli-apps/: Command-line applications
      • gui/: GUI application configuration
      • tools/: User tools configuration
      • user/: User preferences
    • darwin/: Darwin-specific modules
      • home/, nix/, security/, etc.
  • systems/: Individual system configurations
    • x86_64-linux/: Linux systems on x86_64
    • aarch64-linux/: Linux systems on ARM
    • x86_64-darwin/: macOS systems on x86_64
    • aarch64-darwin/: macOS systems on ARM
  • homes/: Home Manager configurations for each user/system
  • lib/: Helper functions and utilities
  • overlays/: Nixpkgs overlays
  • packages/: Custom packages

Using the Configurations

Install a system via nixos-anywhere

$ nix run github:numtide/nixos-anywhere -- \
  --flake 'git+https://git.hoyer.xyz/harald/nixcfg'.#hostname \
  root@hostname --no-reboot --tty -i $HOME/.ssh/id_ed25519
... enter disk password
$ ssh -t root@hostname systemd-cryptenroll /dev/luksdev --wipe-slot=tpm2 --tpm2-device=auto --tpm2-pcrs=1,15

Update NixOS system

$ nixos-rebuild --use-remote-sudo -L --show-trace --refresh --flake git+https://git.hoyer.xyz/harald/nixcfg boot

Update macOS system

$ darwin-rebuild -L --show-trace --refresh --flake git+https://git.hoyer.xyz/harald/nixcfg switch

Update home-manager configuration

$ nix --refresh run 'git+https://git.hoyer.xyz/harald/nixcfg' -- \
  switch -b backup --flake 'git+https://git.hoyer.xyz/harald/nixcfg'