2023-06-05 15:50:07 +00: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, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
2024-06-08 10:23:39 +00:00
|
|
|
|
boot.kernelParams = [ "pci=realloc" "boot.shell_on_fail" ];
|
2023-06-05 15:50:07 +00:00
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
2024-06-08 10:23:39 +00:00
|
|
|
|
boot.initrd.extraUtilsCommands = ''
|
|
|
|
|
copy_bin_and_libs ${pkgs.nvme-cli}/bin/nvme
|
|
|
|
|
copy_bin_and_libs ${pkgs.util-linux}/bin/blkzone
|
|
|
|
|
copy_bin_and_libs ${pkgs.util-linux}/bin/lsblk
|
|
|
|
|
'';
|
|
|
|
|
|
2023-06-05 15:50:07 +00:00
|
|
|
|
boot.initrd.systemd.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/3a81ba8f-f5bb-446c-89a3-ad77e354dae0";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."nixroot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/c10d2822-cb83-4666-98f8-0aa04be259bc";
|
|
|
|
|
keyFile = "/dev/zero";
|
|
|
|
|
keyFileSize = 1;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/AFF2-3149";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
|
|
|
|
[ { device = "/dev/disk/by-uuid/93e251e1-1bfc-4bd4-8585-ea2eae7795bf"; }
|
2024-06-08 10:23:39 +00:00
|
|
|
|
];
|
2023-06-05 15:50:07 +00:00
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|