Files
nix-config/modules/hosts/laptop/hardware-configuration.nix
T

46 lines
1.4 KiB
Nix
Raw Normal View History

2026-03-22 21:30:03 +05:00
{
2026-03-23 14:51:59 +05:00
flake.nixosModules.laptopHardware = { config, lib, pkgs, modulesPath, ... }: {
2026-04-12 10:04:23 +05: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.
2026-03-22 21:30:03 +05:00
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/aabb49a2-7563-4851-9e07-5656cd3fe765";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/aabb49a2-7563-4851-9e07-5656cd3fe765";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/aabb49a2-7563-4851-9e07-5656cd3fe765";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D1B6-016C";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}