2023-03-05 14:07:31 +01: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.
|
2022-10-02 21:39:37 +02:00
|
|
|
imports = [
|
2023-03-05 14:07:31 +01:00
|
|
|
./disk-module
|
2022-10-02 21:39:37 +02:00
|
|
|
];
|
2022-09-10 19:26:10 +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-22 20:09:30 +02:00
|
|
|
|
2022-08-24 18:48:33 +02:00
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2022-08-22 20:09:30 +02:00
|
|
|
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
|
|
|
}
|