40 lines
1.2 KiB
Nix
40 lines
1.2 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 = [ "nvme" "ehci_pci" "xhci_pci_renesas" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/mapper/cryptroot";
|
||
fsType = "btrfs";
|
||
};
|
||
|
||
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/baf64679-742e-4700-9e12-6bc9bc15617c";
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/A2AF-FD4D";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
swapDevices = [{
|
||
device = "/dev/disk/by-label/swap";
|
||
encrypted = {
|
||
enable = true;
|
||
label = "swap";
|
||
blkDev = "/dev/disk/by-label/cryptoswap";
|
||
};
|
||
}];
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|