2023-10-17 18:45:08 -04:00
|
|
|
{ config, lib, modulesPath, pkgs, ... }: {
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
|
|
|
|
boot = {
|
2023-10-17 19:10:54 -04:00
|
|
|
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
2023-10-17 18:45:08 -04:00
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [
|
|
|
|
v4l2loopback
|
2023-10-15 23:12:19 -04:00
|
|
|
];
|
|
|
|
|
2023-10-17 18:45:08 -04:00
|
|
|
consoleLogLevel = 0;
|
2023-10-17 17:53:10 -04:00
|
|
|
|
2023-10-17 18:45:08 -04:00
|
|
|
initrd = {
|
|
|
|
verbose = false;
|
|
|
|
systemd.enable = true;
|
|
|
|
availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
};
|
2023-10-17 17:53:10 -04:00
|
|
|
|
2023-10-17 18:45:08 -04:00
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
timeout = 2;
|
|
|
|
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "nodev";
|
|
|
|
efiSupport = true;
|
|
|
|
extraConfig = ''
|
|
|
|
set timeout_style=hidden
|
|
|
|
'';
|
|
|
|
splashImage = null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-15 23:12:19 -04:00
|
|
|
|
2023-10-17 18:45:08 -04:00
|
|
|
fileSystems = {
|
|
|
|
"/" ={
|
|
|
|
device = "/dev/disk/by-uuid/560976b6-85e0-44ca-bb73-e15a78e9c449";
|
2023-10-15 23:12:19 -04:00
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" ];
|
|
|
|
};
|
|
|
|
|
2023-10-17 18:45:08 -04:00
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/1407-A10C";
|
2023-10-15 23:12:19 -04:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2023-10-17 18:45:08 -04:00
|
|
|
};
|
2023-10-15 23:12:19 -04:00
|
|
|
|
2023-10-17 18:45:08 -04:00
|
|
|
zramSwap.enable = true;
|
|
|
|
hardware = {
|
|
|
|
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
uinput.enable = true;
|
|
|
|
};
|
2023-10-15 23:12:19 -04:00
|
|
|
|
2023-10-17 18:45:08 -04:00
|
|
|
virtualisation = {
|
|
|
|
libvirtd.enable = true;
|
|
|
|
};
|
2023-10-15 23:12:19 -04:00
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
}
|