Add NixOS modules: boot, users, AMD, disko layout, secrets, Hyprland, Steam
- my.disks generates disko: NVMe btrfs (@root/@home/@nix/@log/@swap) + SATA SSD btrfs with one subvolume per ~/Games, Downloads, Documents, Music, Pictures, Videos, Storage (nofail) - lanzaboote Secure Boot, systemd initrd, latest kernel - AMD CPU/GPU: amdgpu initrd, OpenCL, LACT, optional ROCm - agenix with host-key identity, optional password and SSH key secrets - Hyprland (UWSM, XWayland) + greetd/tuigreet, Noctalia services, PipeWire, fonts - Steam + Proton-GE, gamescope, gamemode - overlays: compose Hyprland's hyprland-packages + hyprland-extras (upstream default lacks the hyprwm dependency overlays) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J1cugeLkfFLZMpiztQ8TyN
This commit is contained in:
21 files changed
+972
-4
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# secrets
|
||||
|
||||
Encrypted with [agenix](https://github.com/ryantm/agenix). Nothing here is
|
||||
required: a secret is only used when its `.age` file exists.
|
||||
|
||||
| File | Purpose |
|
||||
| ----------------------- | -------------------------------------------------------------- |
|
||||
| `faumaray-password.age` | Hashed login password (`mkpasswd -m yescrypt`) |
|
||||
| `ssh-id_ed25519.age` | Private SSH key for the user |
|
||||
| `ssh-id_ed25519.pub` | Matching public key, plaintext (optional) |
|
||||
|
||||
1. Replace the placeholder public keys in `secrets.nix` (host key and your own).
|
||||
2. `cd secrets && agenix -e faumaray-password.age`
|
||||
3. `git add` the new `.age` files: flakes only see tracked files.
|
||||
|
||||
Decryption on the machine uses `/etc/ssh/ssh_host_ed25519_key`.
|
||||
@@ -0,0 +1,29 @@
|
||||
# agenix recipients: which public keys may decrypt which secret.
|
||||
#
|
||||
# The agenix CLI reads this file (`cd secrets && agenix -e <name>.age`); the NixOS
|
||||
# configuration does not import it. Every key below is a PLACEHOLDER: replace
|
||||
# each one before encrypting anything.
|
||||
#
|
||||
# host : the machine's /etc/ssh/ssh_host_ed25519_key.pub
|
||||
# (`create-keys` in the install USB workflow writes it to keys/)
|
||||
# user : the public key of the workstation you edit secrets from
|
||||
# (`cat ~/.ssh/id_ed25519.pub`)
|
||||
let
|
||||
# PLACEHOLDER: replace with the real host public key.
|
||||
host = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPLACEHOLDERPLACEHOLDERPLACEHOLDERPLACEHOLDER root@desktop";
|
||||
# PLACEHOLDER: replace with the public key of the machine you edit secrets on.
|
||||
faumaray = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPLACEHOLDERPLACEHOLDERPLACEHOLDERPLACEHOLDER faumaray@gmail.com";
|
||||
|
||||
recipients = [
|
||||
host
|
||||
faumaray
|
||||
];
|
||||
in
|
||||
{
|
||||
# Hashed login password: `mkpasswd -m yescrypt | agenix -e faumaray-password.age`
|
||||
"faumaray-password.age".publicKeys = recipients;
|
||||
|
||||
# Private SSH key installed for the user, linked to ~/.ssh/id_ed25519 by home-manager.
|
||||
# Put the matching public key next to it as ssh-id_ed25519.pub (plaintext, not secret).
|
||||
"ssh-id_ed25519.age".publicKeys = recipients;
|
||||
}
|
||||
Reference in new issue
Block a user