Files
AsdamNixOS/modules/host/laptop/hardware-configuration.nix
2026-04-14 22:48:18 +02:00

40 lines
1.2 KiB
Nix

{ self, inputs, ... }: {
flake.nixosModules.laptopHardware = { config, lib, pkgs, modulesPath, ... }: {
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/e920679f-af38-4509-bb4a-98c12d8606a5";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/3800-D0D0";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/f1657874-9bb9-4724-8ddb-05ddc5aca5d9"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}