2025-01-11 02:00:28 +01:00
|
|
|
{ pkgs, lib, ... }:
|
2025-01-08 02:06:46 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./persist.nix
|
|
|
|
./disko.nix
|
|
|
|
./packages.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "puter";
|
2025-01-11 02:00:28 +01:00
|
|
|
useDHCP = lib.mkDefault true;
|
2025-01-08 02:06:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
2025-01-11 02:00:28 +01:00
|
|
|
efi.canTouchEfiVariables = true;
|
2025-01-08 02:06:46 +01:00
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = true;
|
|
|
|
gfxmodeEfi = "1920x1080";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
tmp.useTmpfs = true;
|
|
|
|
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
|
|
|
supportedFilesystems = [ "btfs" "vfat" "xfs" ];
|
|
|
|
initrd = {
|
2025-01-10 23:38:56 +01:00
|
|
|
availableKernelModules = [ "nvme" "xhci_pci" "ahci"
|
|
|
|
"usbhid" "usb_storage" "sd_mod" ];
|
2025-01-08 02:06:46 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2025-01-10 23:38:56 +01:00
|
|
|
services = {
|
|
|
|
fstrim.enable = true;
|
|
|
|
btrfs.autoScrub.enable = true;
|
|
|
|
};
|
|
|
|
|
2025-01-08 02:06:46 +01:00
|
|
|
fileSystems = {
|
|
|
|
# These are system specific. If you have any additional drives that are not
|
|
|
|
# your root device you can add and mount them here. Added nofail so that you can
|
|
|
|
# install this configuration on a device without it exploding when you don't have
|
|
|
|
# these specific partitions.
|
|
|
|
|
|
|
|
"/mnt/vault" = {
|
|
|
|
device = "/dev/disk/by-uuid/048d175b-0e3e-4ec7-955b-3d9a45f9f237";
|
|
|
|
options = [ "nofail" ];
|
|
|
|
fsType = "xfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/mnt/attic" = {
|
|
|
|
device = "/dev/disk/by-uuid/ec32ce36-9f53-4f44-ac8f-2c9163f0b3d7";
|
|
|
|
options = [ "nofail" ];
|
|
|
|
fsType = "xfs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "24.11"; # [managed by install.sh] { state version }
|
|
|
|
}
|
|
|
|
|