nixos-config/ahrc-pc/hardware-configuration.nix

49 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-10-09 14:06:35 +02:00
{ config, lib, modulesPath, ... }:
2024-09-30 16:43:05 +02:00
{
2024-10-07 14:21:31 +02:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-09-30 16:43:05 +02:00
2024-10-07 14:21:31 +02:00
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
2024-09-30 16:43:05 +02:00
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2024-10-07 14:21:31 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/6371008b-3551-4dd6-8429-9f1d07275c74";
fsType = "xfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/7912-C8B9";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/var" = {
device = "/dev/disk/by-uuid/893e72c7-c904-43ea-b5ee-e1cea18b8268";
fsType = "ext4";
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/329a472f-945b-49da-b840-bc2fb37d2e03";
fsType = "btrfs";
};
fileSystems."/mnt/inthdd" = {
device = "/dev/disk/by-uuid/2f7d6ae6-acda-410e-9c02-992eb64a8c7f";
fsType = "ext4";
};
swapDevices = [{
2024-09-30 16:43:05 +02:00
device = "/swapfile";
size = 8 * 1024;
2024-10-07 14:21:31 +02:00
}];
2024-09-30 16:43:05 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-10-07 14:21:31 +02:00
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2024-09-30 16:43:05 +02:00
networking.interfaces.enp42s0.wakeOnLan.enable = true;
}