2024-10-16 16:57:55 +02: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.
|
|
|
|
|
{
|
2024-10-29 08:55:56 +01:00
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod"];
|
|
|
|
|
boot.initrd.kernelModules = ["dm-snapshot"];
|
|
|
|
|
boot.kernelModules = ["kvm-amd"];
|
|
|
|
|
boot.extraModulePackages = [];
|
2024-10-16 16:57:55 +02:00
|
|
|
|
|
2024-10-16 19:00:09 +02:00
|
|
|
|
boot.initrd.systemd.enable = true;
|
2024-10-16 20:06:17 +02:00
|
|
|
|
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/db8a5cf9-c54b-4e6a-b3f9-e6323eb962a6";
|
2024-10-18 23:01:33 +02:00
|
|
|
|
# doubles SSD performance because r/w queue is unnecessary here
|
2024-10-18 19:38:57 +02:00
|
|
|
|
boot.initrd.luks.devices."root".bypassWorkqueues = true;
|
2024-10-16 19:00:09 +02:00
|
|
|
|
|
2024-10-29 08:55:56 +01:00
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/mapper/vg-root";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["x-systemd.device-timeout=0"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/0374-0967";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = ["fmask=0022" "dmask=0022" "umask=0077" "x-systemd.device-timeout=0"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
|
{
|
|
|
|
|
device = "/dev/mapper/vg-swap";
|
2024-10-18 20:12:13 +02:00
|
|
|
|
options = ["x-systemd.device-timeout=0"];
|
|
|
|
|
}
|
2024-10-29 08:55:56 +01:00
|
|
|
|
];
|
2024-10-16 16:57:55 +02: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;
|
|
|
|
|
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2024-10-16 20:06:17 +02:00
|
|
|
|
}
|