68 lines
1.7 KiB
Nix
68 lines
1.7 KiB
Nix
# 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,
|
||
...
|
||
}: {
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "ehci_pci" "usbhid" "usb_storage" "uas" "sd_mod"];
|
||
boot.initrd.kernelModules = ["dm-snapshot" "amdgpu"];
|
||
boot.kernelModules = ["kvm-amd"];
|
||
boot.extraModulePackages = [];
|
||
|
||
boot.initrd.luks.devices = {
|
||
"cryptroot" = {
|
||
device = "/dev/sdb2";
|
||
allowDiscards = true;
|
||
};
|
||
"cryptdata".device = "/dev/sda1";
|
||
};
|
||
|
||
fileSystems."/" = {
|
||
device = "none";
|
||
fsType = "tmpfs";
|
||
};
|
||
|
||
fileSystems."/nix" = {
|
||
device = "/dev/disk/by-uuid/837cc93f-6d9a-4bfd-b089-29ac6d68127c";
|
||
fsType = "ext4";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/persist" = {
|
||
device = "/dev/disk/by-uuid/a7711118-51b0-4d84-8f18-ef2e06084e05";
|
||
fsType = "ext4";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/disk/by-uuid/0965d496-ffad-4a8d-9de7-28af903baf16";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/991E-79C1";
|
||
fsType = "vfat";
|
||
neededForBoot = true;
|
||
};
|
||
|
||
fileSystems."/data" = {
|
||
device = "/dev/disk/by-uuid/5fc34ef4-207b-45fb-b846-dbb01080d9fe";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
swapDevices = [
|
||
{device = "/dev/disk/by-uuid/0ef8dbbd-2832-4fb2-8a52-86682822f769";}
|
||
];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|