nixos-config/ahrc-pc/hardware-configuration.nix
2024-10-07 14:21:31 +02:00

48 lines
1.2 KiB
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
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 = [{
device = "/swapfile";
size = 8 * 1024;
}];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
networking.interfaces.enp42s0.wakeOnLan.enable = true;
}