2024-03-04 14:09:57 +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, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2024-03-05 16:11:35 +01:00
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
2024-03-04 14:09:57 +01:00
|
|
|
|
|
2024-03-04 20:38:37 +01:00
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "usbhid" "sd_mod" ];
|
2024-03-04 14:09:57 +01:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
2024-03-05 16:11:35 +01:00
|
|
|
|
boot.kernelParams = [
|
|
|
|
|
"lockdown=confidentiality"
|
|
|
|
|
"intel_iommu=on"
|
|
|
|
|
"quiet"
|
|
|
|
|
"splash"
|
|
|
|
|
"video=efifb:nobgrt"
|
|
|
|
|
];
|
|
|
|
|
|
2024-03-04 14:09:57 +01:00
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
2024-03-11 16:51:36 +01:00
|
|
|
|
services.btrfs.autoScrub.enable = true;
|
|
|
|
|
|
2024-03-04 14:09:57 +01:00
|
|
|
|
fileSystems."/" =
|
2024-03-05 00:02:22 +01:00
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/1106202c-c3bf-4c15-b7cd-e78749e5c955";
|
2024-03-04 20:38:37 +01:00
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=@" ];
|
2024-03-04 14:09:57 +01:00
|
|
|
|
};
|
|
|
|
|
|
2024-03-04 20:38:37 +01:00
|
|
|
|
boot.initrd.luks.devices."luks-0e2792db-1b80-49a7-b2eb-54e4b5fc3502".device = "/dev/disk/by-uuid/0e2792db-1b80-49a7-b2eb-54e4b5fc3502";
|
2024-03-05 15:41:42 +01:00
|
|
|
|
boot.initrd.luks.devices."luks-280f2e07-e5fc-478e-b7ee-445c99bea415".device = "/dev/disk/by-uuid/280f2e07-e5fc-478e-b7ee-445c99bea415";
|
2024-03-04 20:38:37 +01:00
|
|
|
|
|
2024-03-04 14:09:57 +01:00
|
|
|
|
fileSystems."/boot" =
|
2024-03-05 00:02:22 +01:00
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/13C4-A825";
|
2024-03-04 14:09:57 +01:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-05 15:41:42 +01:00
|
|
|
|
swapDevices = [{ device = "/dev/mapper/luks-280f2e07-e5fc-478e-b7ee-445c99bea415"; }];
|
2024-03-04 14:09:57 +01:00
|
|
|
|
|
|
|
|
|
# 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;
|
2024-03-04 20:38:37 +01:00
|
|
|
|
# networking.interfaces.enp82s0u1u3u4.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
2024-03-04 14:09:57 +01:00
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-03-04 20:38:37 +01:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2024-03-04 14:09:57 +01:00
|
|
|
|
}
|