my nix configs
Find a file
Harald Hoyer 49ecff0fec chore(goose): update package version and source details
- Updated the version from 1.0.16 to 1.0.16-1.
- Replaced GitHub tag with a specific revision for better precision.
- Updated cargo and source hashes to match the new revision.
2025-04-01 08:48:22 +02:00
.secrets fix(secrets): update sopsFile path for internetbs 2024-12-06 09:50:56 +01:00
homes fix(home-manager): correct ellipsis configuration 2025-03-22 08:30:24 +01:00
lib nix fmt 2024-11-19 10:31:29 +01:00
modules refactor: fix formatting and ensure consistent style 2025-03-20 09:55:20 +01:00
overlays chore(goose): update package version and source details 2025-04-01 08:48:22 +02:00
packages fix(nixos-hosts): use arithmetic comparison in argument loop 2025-02-26 15:42:15 +01:00
systems feat(goose-cli): add package and update configurations 2025-03-29 10:26:42 +01:00
.gitattributes remove required from .gitattributes 2024-11-29 15:45:57 +01:00
.gitignore chore: update .gitignore to include .direnv 2025-03-20 09:56:10 +01:00
.sops.yaml A new start 2024-03-21 15:00:36 +01:00
CLAUDE.md docs: add development guidelines in CLAUDE.md 2025-03-20 09:55:32 +01:00
flake.lock feat(overlays): add goose-cli and aider-chat 2025-03-26 09:00:26 +01:00
flake.nix feat(flakes): add claude desktop package and overlay 2025-03-22 08:26:25 +01:00
README.md docs: update README with project structure and instructions 2025-03-20 09:43:18 +01: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'