Update hosts

This commit is contained in:
demenik
2025-12-01 18:35:52 +01:00
parent fc68fa5ce9
commit 5815232bf5
2 changed files with 29 additions and 1 deletions

29
hosts/desktop.nix Normal file
View File

@@ -0,0 +1,29 @@
{
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not_detected")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.kernelModules = ["kvm-amd"];
fileSystems."/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
options = ["fmask=0022 dmask=0022"];
};
swapDevices = [];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@@ -1,7 +1,6 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {