diff options
| author | coasteen <coasteen@proton.me> | 2026-07-09 10:46:52 +0330 |
|---|---|---|
| committer | coasteen <coasteen@proton.me> | 2026-07-09 10:46:52 +0330 |
| commit | a3008666c6c75ff61b1fc329b4d962a6c367d5f0 (patch) | |
| tree | a203a54b3c61884ea13957cf18284f6c83f8e64d /configuration/hardware.nix | |
Diffstat (limited to 'configuration/hardware.nix')
| -rw-r--r-- | configuration/hardware.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configuration/hardware.nix b/configuration/hardware.nix new file mode 100644 index 0000000..7de8fe9 --- /dev/null +++ b/configuration/hardware.nix @@ -0,0 +1,25 @@ +{ config, lib, modulesPath, ... }: + +{ + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelParams = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/".device = "/dev/disk/by-label/nixos"; + fileSystems."/".fsType = "ext4"; + + fileSystems."/boot".device = "/dev/disk/by-label/boot"; + fileSystems."/boot".fsType = "vfat"; + fileSystems."/boot".options = [ "fmask=0022" "dmask=0022" ]; + + fileSystems."/media/drive".device = "/dev/disk/by-uuid/facf5a78-8872-437c-4345-50a28c894aca"; + fileSystems."/media/drive".fsType = "btrfs"; + + swapDevices = [{ device = "/dev/disk/by-label/swap"; }]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
