2021-07-01 01:02:55 +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, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2021-11-25 11:42:32 +00:00
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2021-07-01 01:02:55 +01:00
|
|
|
|
|
2021-11-25 11:42:32 +00:00
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
2021-07-01 01:02:55 +01:00
|
|
|
|
|
2021-11-25 11:42:32 +00:00
|
|
|
|
fileSystems."/" = {
|
2022-07-06 19:34:12 +01:00
|
|
|
|
device = "/dev/disk/by-uuid/28ce6650-de21-4c1d-ae42-95d1e3507740";
|
|
|
|
|
fsType = "ext4";
|
2021-07-03 23:43:52 +01:00
|
|
|
|
};
|
2021-07-01 01:02:55 +01:00
|
|
|
|
|
2022-07-06 19:34:12 +01:00
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/B790-869D";
|
|
|
|
|
fsType = "vfat";
|
2021-07-03 23:43:52 +01:00
|
|
|
|
};
|
2021-07-01 01:02:55 +01:00
|
|
|
|
|
2022-07-06 19:34:12 +01:00
|
|
|
|
hardware.cpu.amd.updateMicrocode =
|
|
|
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
|
2021-11-25 11:42:32 +00:00
|
|
|
|
fileSystems."/media" = {
|
|
|
|
|
device = "datapool/media";
|
2021-07-03 23:43:52 +01:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
|
|
|
|
|
fileSystems."/secrets" = {
|
|
|
|
|
device = "backedpool/secrets";
|
2021-07-13 09:53:22 +01:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
2021-07-03 23:43:52 +01:00
|
|
|
|
|
2022-07-06 19:34:12 +01:00
|
|
|
|
fileSystems."/services" = {
|
2021-11-25 11:42:32 +00:00
|
|
|
|
device = "backedpool/services";
|
2021-07-03 23:43:52 +01:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
2022-10-11 20:31:16 +01:00
|
|
|
|
swapDevices = [{
|
|
|
|
|
device = "/swapfile";
|
|
|
|
|
size = 1024 * 64;
|
|
|
|
|
}];
|
|
|
|
|
|
2022-07-06 19:34:12 +01:00
|
|
|
|
boot = {
|
|
|
|
|
initrd.luks.devices = {
|
|
|
|
|
root = {
|
|
|
|
|
device = "/dev/disk/by-uuid/bdd5f111-ecec-48d8-861f-94083098c724";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
allowDiscards = true;
|
|
|
|
|
fallbackToPassword = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
initrd.availableKernelModules =
|
|
|
|
|
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
|
initrd.kernelModules = [ "dm-snapshot" ];
|
2021-07-03 23:43:52 +01:00
|
|
|
|
};
|
2021-07-01 01:02:55 +01:00
|
|
|
|
}
|