An open API service indexing awesome lists of open source software.

https://github.com/categoricalcat/nixos

cursed nix configs
https://github.com/categoricalcat/nixos

dns nix nix-flake nixos nixos-configuration server

Last synced: about 9 hours ago
JSON representation

cursed nix configs

Awesome Lists containing this project

README

          

# 伊的flake

my allegedly pure configs

## the stuff

- **yirukou**: router
- **yitaishi**: main desktop
- **yixiaoqing**: laptop
- **yifuwuqi**: monolith server
- **yichuang**: wsl

## the imperatives

### secrets and keys

See [Secrets And Host Keys](docs/src/services/secrets.md) for SOPS setup,
host key provisioning, distributed builds key rotation, shared htpasswd,
the search service note, and the lockout checklist.

### samba server

```bash
nix-shell -p samba --run "sudo smbpasswd -a yi"
```

> *see `.sops.example.yaml` and `secrets/.secrets.example.yaml` for the expected formats.*

### FIDO2 Authentication

```bash
mkdir -p ~/.config/Yubico
nix-shell -p pam_u2f --run "pamu2fcfg > ~/.config/Yubico/u2f_keys"
```

> *Note, multiple keys: `pamu2fcfg -n >> ~/.config/Yubico/u2f_keys`.*

### yitaishi Lanzaboote / Windows

```bash
# if Windows uses BitLocker, save the recovery key first
sudo sbctl create-keys
sudo nixos-rebuild switch --flake .#yitaishi

# put firmware into Secure Boot Setup Mode, then:
sudo sbctl enroll-keys --microsoft

# verify
bootctl status
sudo sbctl verify
```

> *Use `--microsoft` to keep the usual Windows and firmware signing chain available.*

### Bitwarden System Auth + Keyring

**Verify prerequisites after `nixos-rebuild switch`:**

```bash
# polkit policy is registered
pkaction --action-id com.bitwarden.Bitwarden.unlock

# gnome-keyring exposes Secret Service on D-Bus
busctl --user list | grep -i secret

# polkit agent is running (niri only; GNOME uses gnome-shell's built-in agent)
pgrep -a polkit
```