nix-config/hardware/dell-wyse-3040.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2022-12-30 18:29:13 +01:00
{ config, lib, TLMS, ... }:
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.
2022-10-02 21:39:37 +02:00
imports = [
2022-12-30 18:29:13 +01:00
TLMS.nixosModules.disk-module
2022-10-02 21:39:37 +02:00
];
networking = {
2022-10-02 21:39:37 +02:00
interfaces.enp1s0.useDHCP = lib.mkDefault true;
useDHCP = lib.mkDefault true;
};
networking.useNetworkd = true;
networking.wireguard.enable = true;
2022-12-30 18:29:13 +01:00
deployment-TLMS.net.iface.uplink = {
2022-10-02 21:39:37 +02:00
name = lib.mkDefault "enp1s0";
useDHCP = lib.mkDefault true;
2022-08-31 13:44:14 +02:00
};
2022-05-29 19:02:25 +02:00
boot.tmpOnTmpfsSize = "25%";
2022-08-24 18:48:33 +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 = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};
2022-04-30 23:41:24 +02:00
}