nixos_flake_config/mediabox/hardware-configuration.nix

91 lines
1.9 KiB
Nix
Raw Permalink Normal View History

2023-09-30 14:10:53 +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.
{
lib,
modulesPath,
...
2025-01-10 18:11:42 +01:00
}:
{
2023-09-30 14:10:53 +02:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2025-01-10 18:11:42 +01:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-09-30 14:10:53 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/ae774285-60dc-4b08-ab26-8208e8f4e81e";
fsType = "btrfs";
2025-01-10 18:11:42 +01:00
options = [
"subvol=root"
"compress=lzo"
"noatime"
];
2023-09-30 14:10:53 +02:00
};
boot.initrd.luks.devices."enc".device = "/dev/disk/by-uuid/60aa7671-bfee-451b-b871-ac7c5a4a9f3a";
fileSystems."/home" = {
device = "/dev/disk/by-uuid/ae774285-60dc-4b08-ab26-8208e8f4e81e";
fsType = "btrfs";
2025-01-10 18:11:42 +01:00
options = [
"subvol=home"
"compress=lzo"
"noatime"
];
2023-09-30 14:10:53 +02:00
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/ae774285-60dc-4b08-ab26-8208e8f4e81e";
fsType = "btrfs";
2025-01-10 18:11:42 +01:00
options = [
"subvol=nix"
"compress=lzo"
"noatime"
];
2023-09-30 14:10:53 +02:00
};
fileSystems."/persist" = {
device = "/dev/disk/by-uuid/ae774285-60dc-4b08-ab26-8208e8f4e81e";
fsType = "btrfs";
2025-01-10 18:11:42 +01:00
options = [
"subvol=persist"
"compress=lzo"
"noatime"
];
2023-09-30 14:10:53 +02:00
};
fileSystems."/var/log" = {
device = "/dev/disk/by-uuid/ae774285-60dc-4b08-ab26-8208e8f4e81e";
fsType = "btrfs";
2025-01-10 18:11:42 +01:00
options = [
"subvol=log"
"compress=lzo"
"noatime"
];
2023-09-30 14:10:53 +02:00
neededForBoot = true;
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/4B94-6E7B";
fsType = "vfat";
};
swapDevices = [
2025-01-10 18:11:42 +01:00
{ device = "/dev/disk/by-uuid/7b44ab02-84ff-4ffd-be26-58247cf5a982"; }
2023-09-30 14:10:53 +02:00
];
hardware.cpu.intel.updateMicrocode = true;
2023-09-30 14:10:53 +02:00
nix.settings.max-jobs = lib.mkDefault 8;
}