Formatting and code cleanup

This commit is contained in:
Jurn Wubben 2025-05-24 14:42:31 +02:00
parent 48c218c2f7
commit 33f9df0b2e
8 changed files with 59 additions and 57 deletions

View file

@ -12,33 +12,28 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/33b7e681-d92a-40db-a172-b797591a1e2e";
fsType = "ext4";
boot = {
initrd.availableKernelModules = ["xhci_pci" "ahci" "sd_mod"];
initrd.kernelModules = [];
kernelModules = ["kvm-intel"];
extraModulePackages = [];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/0BEA-7525";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/33b7e681-d92a-40db-a172-b797591a1e2e";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/0BEA-7525";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}