2023-06-17 07:53:58 +02:00
|
|
|
{ lib, ... }: {
|
|
|
|
|
|
|
|
custom = {
|
|
|
|
gui.enable = true;
|
|
|
|
backups.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
home-manager.users.riley.home.stateVersion = "22.11";
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "lime";
|
|
|
|
interfaces."wlp0s20f3".useDHCP = true;
|
|
|
|
interfaces."enp0s31f6".useDHCP = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd.availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
"sdhci_pci"
|
|
|
|
];
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
2023-06-17 08:12:27 +02:00
|
|
|
loader.grub = {
|
2023-06-17 07:53:58 +02:00
|
|
|
enable = true;
|
2023-06-17 08:12:27 +02:00
|
|
|
efiSupport = true;
|
|
|
|
device = "nodev";
|
2023-06-17 07:53:58 +02:00
|
|
|
};
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
initrd.luks.devices.root.device = "/dev/disk/by-uuid/bd5edcc6-35b7-4829-901f-8593c16f0324";
|
|
|
|
resumeDevice = "/dev/disk/by-label/NIXOS-ROOT";
|
|
|
|
kernelParams = [
|
|
|
|
# btrfs inspect-internal map-swapfile -r /swap/swapfile
|
|
|
|
"resume_offset=2630912"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS-ROOT";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/2745-1284";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [{
|
|
|
|
device = "/swap/swapfile";
|
|
|
|
size = 16 * 1024;
|
|
|
|
}];
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
|
|
|
}
|