90 lines
1.7 KiB
Nix
90 lines
1.7 KiB
Nix
{ ... }:
|
|
{
|
|
swappiness = 10;
|
|
|
|
boot = {
|
|
resumeDevice = "/dev/disk/by-uuid/56ad966f-3268-4b59-999a-48a082bb8052";
|
|
|
|
initrd = {
|
|
verbose = true;
|
|
systemd = {
|
|
emergencyAccess = "$y$j9T$yu1NICt8J9IFQ3wmgViop1$8rCHUrMNN2dCQeSt8f4h73Wrw5oUKoojuhetYyV7yN";
|
|
enable = true;
|
|
};
|
|
|
|
luks.devices.cryptedroot.device = "/dev/disk/by-partlabel/disk-main-luks";
|
|
|
|
availableKernelModules = [
|
|
"xhci_pci"
|
|
"nvme"
|
|
"thunderbolt"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
"rtsx_pci_sdmmc"
|
|
];
|
|
|
|
kernelModules = [
|
|
"kvm-intel"
|
|
];
|
|
};
|
|
|
|
kernelModules = [
|
|
"kvm-intel"
|
|
"i2c-dev"
|
|
];
|
|
|
|
kernelParams = [
|
|
"usbcore.autosuspend=-1"
|
|
"quiet"
|
|
"modeset"
|
|
];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/71AB-29E0";
|
|
fsType = "vfat";
|
|
options = [
|
|
"fmask=0022"
|
|
"dmask=0022"
|
|
];
|
|
};
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/57df3204-a8c7-4842-957c-9752f996bc0f";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"compress=zstd"
|
|
"subvol=/root"
|
|
"noatime"
|
|
];
|
|
};
|
|
"/home" = {
|
|
device = "/dev/disk/by-uuid/57df3204-a8c7-4842-957c-9752f996bc0f";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"compress=zstd"
|
|
"subvol=/home"
|
|
"noatime"
|
|
];
|
|
};
|
|
"/nix" = {
|
|
device = "/dev/disk/by-uuid/57df3204-a8c7-4842-957c-9752f996bc0f";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"compress=zstd"
|
|
"subvol=/nix"
|
|
"noatime"
|
|
];
|
|
};
|
|
};
|
|
|
|
swapDevices = [
|
|
{
|
|
device = "/dev/disk/by-uuid/56ad966f-3268-4b59-999a-48a082bb8052";
|
|
priority = 100;
|
|
}
|
|
];
|
|
|
|
}
|