Files
nixos-config/README.md
T
thomas 1d1afe1a43
helium update / update-helium (push) Successful in 10s
zen browser update / update-zen-browser (push) Successful in 5s
handy update / update-handy (push) Successful in 5s
move smb automount secrets to agenix
2026-03-13 19:07:13 +00:00

56 lines
1.2 KiB
Markdown

# 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
```bash
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):
```bash
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:
```text
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:
```bash
sudo nixos-rebuild switch --flake .#nixos
```