From a3008666c6c75ff61b1fc329b4d962a6c367d5f0 Mon Sep 17 00:00:00 2001 From: coasteen Date: Thu, 9 Jul 2026 10:46:52 +0330 Subject: init nix --- configuration/hardware.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 configuration/hardware.nix (limited to 'configuration/hardware.nix') 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; +} -- cgit v1.2.3