Files
NixOsConfig/hosts/desktop/disks.nix
T
Claude 0ce9943d56 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
2026-10-11 12:38:52 +00:00

34 lines
1013 B
Nix

# 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 = { };
};
};
};
}