2024-02-07 14:29:55 +01:00
|
|
|
# Do not modify this file! It was generated by 'nixos-generate-config'
|
2023-11-03 15:23:05 +01:00
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
2023-11-05 18:40:04 +01:00
|
|
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "sd_mod" ];
|
2023-11-03 15:23:05 +01:00
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
{ device = "/dev/disk/by-uuid/4d413255-2c52-4b69-9be1-179e28f1b67e";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/5ecf0d68-24fc-49ee-8a78-23b47f3c566c";
|
|
|
|
|
2023-11-05 18:40:04 +01:00
|
|
|
fileSystems."/swap" =
|
|
|
|
{ device = "/dev/disk/by-uuid/4d413255-2c52-4b69-9be1-179e28f1b67e";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@swap" ];
|
|
|
|
};
|
|
|
|
|
2023-11-03 15:23:05 +01:00
|
|
|
fileSystems."/boot" =
|
|
|
|
{ device = "/dev/disk/by-uuid/81A5-B98A";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2023-11-05 18:40:04 +01:00
|
|
|
fileSystems."/mnt/backup" =
|
2024-02-23 19:59:08 +01:00
|
|
|
{ device = "/dev/disk/by-uuid/68508654-0abd-4784-adc8-6e31b44406b5";
|
2023-11-03 15:23:05 +01:00
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
|
2023-11-05 18:40:04 +01:00
|
|
|
boot.initrd.luks.devices."6tb1".device = "/dev/disk/by-id/ata-WDC_WD60EFAX-68SHWN0_WD-WX31D29924PZ-part1";
|
|
|
|
boot.initrd.luks.devices."6tb2".device = "/dev/disk/by-id/ata-ST6000DM003-2CY186_ZR11WA9K-part1";
|
|
|
|
|
2023-11-03 15:23:05 +01:00
|
|
|
swapDevices = [ { device = "/swap/swapfile"; } ];
|
|
|
|
|
|
|
|
# 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.enp3s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|