From 5bf0fb06e0f3d58ee79302b976b9c2374de7ccbf Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Sun, 21 Jun 2026 12:15:06 +0200 Subject: [PATCH] Added asus-desktop config. --- .../asus-desktop/configuration.nix | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 hardware-configuration/asus-desktop/configuration.nix diff --git a/hardware-configuration/asus-desktop/configuration.nix b/hardware-configuration/asus-desktop/configuration.nix new file mode 100644 index 0000000..9726d96 --- /dev/null +++ b/hardware-configuration/asus-desktop/configuration.nix @@ -0,0 +1,62 @@ +{ config, lib, modulesPath, pkgs, ... }: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + # Hostname + networking.hostName = "asus-desktop"; + + # Bootloader and boot options + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + # Filesystems + fileSystems."/" = { + device = "/dev/disk/by-uuid/c2fa161a-04ab-4452-88df-81dd7d0760fc"; + fsType = "ext4"; + }; + + fileSystems."/run/media/ulysse-cura/Raptor1" = { + device = "/dev/disk/by-uuid/ce60cff8-ac96-4d97-87fe-58cc9d363522"; + fsType = "ext4"; + }; + + fileSystems."/run/media/ulysse-cura/Raptor2" = { + device = "/dev/disk/by-uuid/7d8a3d40-7bce-47c6-8cbe-8af05abfd8b3"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/43AB-8A97"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [{ + device = "/dev/disk/by-uuid/f9ec99de-8b93-405c-b2fe-56ea5069144c"; + }]; + + # Platform misc + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + # Enable and configure nvidia graphics drivers + hardware.graphics.enable = true; + services.xserver.videoDrivers = [ "nvidia" ]; + + hardware.nvidia.open = false; + hardware.nvidia.modesetting.enable = true; + hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_580; + hardware.graphics.extraPackages = with pkgs; [ + vulkan-loader + vulkan-validation-layers + vulkan-extension-layer + ]; +} \ No newline at end of file