No description
Find a file
2026-05-05 21:14:04 +01:00
modules chromium 2026-05-05 21:14:04 +01:00
secrets move smb automount secrets to agenix 2026-03-13 19:07:13 +00:00
flake.lock update thomas pkgs 2026-05-01 14:02:56 +01:00
flake.nix niri from master 2026-04-27 10:47:45 +01:00
hardware-configuration.nix wip: flake parts setup 2026-03-08 18:22:50 +00:00
README.md move smb automount secrets to agenix 2026-03-13 19:07:13 +00:00

nixos-config

NixOS configuration using a dendritic structure — flake.nix at the root, with modules branching out under modules/.

.
├── flake.nix
├── hardware-configuration.nix
└── modules/
    ├── browsers.nix
    ├── gaming.nix
    ├── packages.nix
    ├── shell.nix
    ├── ui.nix
    └── ...

Usage

sudo nixos-rebuild switch --flake .#nixos

SMB share secrets (agenix)

SMB automount is configured in modules/hosts/nixos.nix and activates once secrets/smb-credentials.age exists.

  1. Edit recipients in secrets/secrets.nix if needed.
  2. Create the encrypted secret (using the host SSH private key via sudo):
sudo env RULES=secrets/secrets.nix nix run github:ryantm/agenix -- -e secrets/smb-credentials.age -i /etc/ssh/ssh_host_ed25519_key

Use this content:

username=YOUR_SMB_USER
password=YOUR_SMB_PASSWORD
# optional
# domain=WORKGROUP

Configured shares mirror your Endeavour setup:

  • //192.168.1.102/data/mnt/unraid-data
  • //192.168.1.102/appdata/mnt/unraid-appdata

Then apply:

sudo nixos-rebuild switch --flake .#nixos