59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{ 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" ];
|
|
loader.systemd-boot = {
|
|
enable = true;
|
|
editor = false;
|
|
configurationLimit = 10;
|
|
};
|
|
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";
|
|
|
|
}
|