Files
NixOsConfig/modules/nixos/core/nix.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

55 lines
1.5 KiB
Nix

# Nix daemon settings, binary caches, garbage collection and flake registry.
{
config,
inputs,
...
}:
{
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
# root is already trusted by default; this adds the admin group.
trusted-users = [ "@wheel" ];
warn-dirty = false;
# Same caches as flake.nixConfig, so the system keeps using them after
# install without the "untrusted flake settings" prompt.
extra-substituters = [
"https://nix-community.cachix.org"
"https://noctalia.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4="
];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# `nix shell nixpkgs#foo` and <nixpkgs> use the exact nixpkgs of this flake
# instead of fetching a different revision.
channel.enable = false;
registry.nixpkgs.flake = inputs.nixpkgs;
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
};
programs = {
# Nicer `nixos-rebuild` front-end that knows where the flake lives.
nh = {
enable = true;
flake = "/home/${config.my.user.name}/nixos-config";
};
# Lets prebuilt binaries (editors' language servers, game launchers) run.
nix-ld.enable = true;
};
}