my nix configs
  • Python 50.6%
  • Nix 45.3%
  • HTML 1.6%
  • Shell 1.2%
  • JavaScript 0.8%
  • Other 0.5%
Find a file
2026-11-22 01:04:44 +01:00
.forgejo/workflows fix(ci): harden MAX_GIT_KEY secret handling 2026-11-17 11:19:48 +01:00
.secrets chore(secrets): use a publish-only ntfy token for the fleet 2026-11-19 15:29:24 +01:00
checks feat(cve-inventory): add the running kernel as a linux entry 2026-11-19 15:40:12 +01:00
config feat(agents): copy antialgorithm skill into config, trimmed to its text and idea scripts 2026-11-18 16:08:55 +01:00
docs docs(cve-watch): plan kernel tuning 2026-11-20 10:00:43 +01:00
lib feat(cve-inventory): add the running kernel as a linux entry 2026-11-19 15:40:12 +01:00
modules fix(llm): turn off smelt's workspace restriction in yolo mode 2026-11-20 11:19:45 +01:00
overlays fix(php): pin php84 8.4.28 / php85 8.5.13 security releases 2026-11-19 18:28:40 +01:00
packages fix(cve-watch): say how a kernel hit spanning two series is handled 2026-11-20 10:47:21 +01:00
shells fix(nextcloud-talk-platform): run checkPhase on the hermes-agent venv 2026-09-28 16:51:27 +02:00
systems fix(halo/hermes): stamp config schema v52 for pinned hermes-agent input 2026-11-20 11:56:56 +01:00
.gitignore chore(gitignore): add .pi-lens 2026-08-05 01:49:46 +02:00
.sops.yaml feat(halo): run hermes-agent natively instead of in the sgx VM 2026-10-22 09:41:26 +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 feat(security): cveInventory output for mx and attic 2026-11-19 15:29:24 +01:00
flake.lock chore: refresh flake.lock 2026-11-22 01:04:44 +01:00
flake.nix feat(security): cveInventory output for mx and attic 2026-11-19 15:29:24 +01: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'