2022-08-22 20:09:30 +02:00
|
|
|
{ config, lib, ... }:
|
2022-04-30 23:41:24 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
|
|
|
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
|
|
|
# replicates the default behaviour.
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.enp1s0.useDHCP = true;
|
2022-05-29 19:02:25 +02:00
|
|
|
boot.tmpOnTmpfsSize = "25%";
|
2022-08-22 20:09:30 +02:00
|
|
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 1;
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "sdhci_acpi" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
2022-08-22 18:51:00 +02:00
|
|
|
fileSystems."/" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2022-08-22 20:09:30 +02:00
|
|
|
fileSystems."/boot" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-label/ESP";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2022-04-30 23:41:24 +02:00
|
|
|
}
|