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:
Claude committed 2026-10-11 12:38:52 +00:00
1 parent c76925b3ba
commit 0ce9943d56
21 files changed
+972 -4

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
{
"system": "/dev/disk/by-id/nvme-CHANGE-ME",
"data": "/dev/disk/by-id/ata-CHANGE-ME"
}
+33
View File
@@ -0,0 +1,33 @@
# Disk layout of `desktop`; the generic logic lives in modules/nixos/hardware/disks.nix.
# The device paths come from disk-ids.json, which `nix run .#install` rewrites
# after you pick the disks (list them with `ls -l /dev/disk/by-id`).
{ lib, ... }:
let
ids = lib.importJSON ./disk-ids.json;
in
{
my.disks = {
enable = true;
system.device = ids.system;
data = {
enable = true;
device = ids.data;
# Each entry becomes a btrfs subvolume on the data disk, mounted at
# ~/<Name>. To add a folder later, add `Name = { };` here, create the
# subvolume (`btrfs subvolume create /mnt/data/@name`, with the data
# disk's top level mounted), then rebuild. Storage is a free-form folder
# to organise yourself; Steam's library goes in ~/Games/SteamLibrary.
homeFolders = {
Games = { };
Downloads = { };
Documents = { };
Music = { };
Pictures = { };
Videos = { };
Storage = { };
};
};
};
}
+20
View File
@@ -0,0 +1,20 @@
# Placeholder, overwritten by the install script (nixos-generate-config --no-filesystems).
# Filesystems are not listed here on purpose: disko owns them (disks.nix).
{ lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}