dotfiles/hosts/nixos-desktop/hardware-configuration.nix

59 lines
1.7 KiB
Nix
Raw Normal View History

2021-09-29 16:27:02 +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.
2022-07-15 13:11:54 +02:00
{ config
, lib
, pkgs
, modulesPath
, ...
}: {
2021-09-29 16:58:28 +02:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2021-09-29 16:27:02 +02:00
2022-07-15 13:11:54 +02:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
2021-09-29 16:27:02 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2021-09-29 16:58:28 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/668a49b3-d169-461f-861d-0c3e6a1642d1";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" ];
2021-09-29 16:58:28 +02:00
};
2022-07-15 13:11:54 +02:00
boot.initrd.luks.devices."enc".device = "/dev/disk/by-uuid/30025a9f-44cf-4074-8ae2-d4925efd67dd";
2021-09-29 16:58:28 +02:00
fileSystems."/home" = {
device = "/dev/disk/by-uuid/668a49b3-d169-461f-861d-0c3e6a1642d1";
fsType = "btrfs";
options = [ "subvol=home" "compress=zstd" ];
2021-09-29 16:58:28 +02:00
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/668a49b3-d169-461f-861d-0c3e6a1642d1";
fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" ];
2021-09-29 16:58:28 +02:00
};
fileSystems."/var/log" = {
device = "/dev/disk/by-uuid/668a49b3-d169-461f-861d-0c3e6a1642d1";
fsType = "btrfs";
options = [ "subvol=log" "compress=zstd" ];
2021-09-29 16:58:28 +02:00
neededForBoot = true;
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/297B-C04C";
fsType = "vfat";
};
fileSystems."/media/games" = {
device = "/dev/disk/by-uuid/8f92ff36-a685-4a67-a3d4-55136dc5f286";
fsType = "ext4";
};
2021-09-29 16:27:02 +02:00
2022-07-15 13:11:54 +02:00
swapDevices = [{ device = "/dev/disk/by-uuid/00ad6f74-f23e-4ac0-abfb-89bdfe5ab8ae"; }];
2021-09-29 16:27:02 +02:00
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2021-09-29 16:27:02 +02:00
}