31 lines
963 B
Nix
31 lines
963 B
Nix
|
|
{ self, inputs, ... }: {
|
||
|
|
flake.nixosModules.robinHardware = { config, lib, pkgs, modulesPath, ... }: {
|
||
|
|
imports =
|
||
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
|
|
];
|
||
|
|
|
||
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||
|
|
boot.initrd.kernelModules = [ ];
|
||
|
|
boot.kernelModules = [ "kvm-intel" ];
|
||
|
|
boot.extraModulePackages = [ ];
|
||
|
|
|
||
|
|
fileSystems."/" =
|
||
|
|
{ device = "/dev/disk/by-uuid/f2961551-7226-435d-ac61-f163fd501cd0";
|
||
|
|
fsType = "ext4";
|
||
|
|
};
|
||
|
|
|
||
|
|
fileSystems."/boot" =
|
||
|
|
{ device = "/dev/disk/by-uuid/4F83-826C";
|
||
|
|
fsType = "vfat";
|
||
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
||
|
|
};
|
||
|
|
|
||
|
|
swapDevices =
|
||
|
|
[ { device = "/dev/disk/by-uuid/8a40ed87-4797-4a4c-aa8c-e7faa6ec6d57"; }
|
||
|
|
];
|
||
|
|
|
||
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
|
};
|
||
|
|
}
|