2023-03-06 19:07:51 +01:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
|
{ config, lib, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "megaraid_sas" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
2023-03-06 20:37:28 +01:00
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
2023-03-06 19:07:51 +01:00
|
|
|
|
|
2023-03-06 20:37:28 +01:00
|
|
|
|
boot.initrd.luks.devices.server7_nvme0 = {
|
|
|
|
|
device = "/dev/disk/by-uuid/ea5b5339-be79-4237-9383-4649e336fae6";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
};
|
2023-03-07 00:06:57 +01:00
|
|
|
|
boot.initrd.luks.devices.server7_ssd0 = {
|
|
|
|
|
device = "/dev/disk/by-uuid/7a6035c1-9ab7-416e-b94a-bedc0f1af72b";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
};
|
2023-03-06 19:07:51 +01:00
|
|
|
|
|
2023-03-06 20:37:28 +01:00
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "server7-nvme/nixos";
|
2023-03-06 19:07:51 +01:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-03-06 20:37:28 +01:00
|
|
|
|
fileSystems."/nix" =
|
|
|
|
|
{ device = "server7-nvme/nixos/nix";
|
2023-03-06 19:07:51 +01:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/nix/store" =
|
2023-03-06 20:37:28 +01:00
|
|
|
|
{ device = "server7-nvme/nixos/nix/store";
|
2023-03-06 19:07:51 +01:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/nix/var" =
|
2023-03-06 20:37:28 +01:00
|
|
|
|
{ device = "server7-nvme/nixos/nix/var";
|
2023-03-06 19:07:51 +01:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2023-03-06 20:37:28 +01:00
|
|
|
|
{ device = "/dev/disk/by-uuid/8E67-EF31";
|
|
|
|
|
fsType = "vfat";
|
2023-03-06 19:07:51 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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.enp5s0f0.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp5s0f1.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp5s0f2.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp5s0f3.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp8s0f0.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp8s0f1.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|