48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
|
|
|
boot = {
|
|
loader = {
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot/EFI";
|
|
};
|
|
grub = {
|
|
enable = true;
|
|
version = 2;
|
|
device = "nodev";
|
|
efiSupport = true;
|
|
enableCryptodisk = true;
|
|
gfxmodeEfi = "1024x768";
|
|
};
|
|
};
|
|
initrd = {
|
|
luks.devices."nixos".device =
|
|
"/dev/disk/by-uuid/78acaebe-952a-43b1-acc8-66c35a60577e";
|
|
availableKernelModules =
|
|
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
};
|
|
kernelModules = [ "kvm-intel" ];
|
|
supportedFilesystems = [ "exfat" ];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/ce5b0ac6-6eaf-45a6-b6c8-bd4958caf335";
|
|
fsType = "btrfs";
|
|
options = ["compress=zstd" "autodefrag" "noatime"];
|
|
};
|
|
"/boot/EFI" = {
|
|
device = "/dev/disk/by-uuid/C4A6-3DB5";
|
|
fsType = "vfat";
|
|
};
|
|
};
|
|
|
|
swapDevices =
|
|
[{ device = "/dev/disk/by-uuid/66a6b988-2648-4b71-8afc-8a92fee2c446"; }];
|
|
|
|
nix.maxJobs = lib.mkDefault 8;
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
|
}
|