Skip to content

Instantly share code, notes, and snippets.

@3deep5me
Created November 9, 2025 09:07
Show Gist options
  • Save 3deep5me/d98f862bfacc24696a20e2432d889cdf to your computer and use it in GitHub Desktop.
Save 3deep5me/d98f862bfacc24696a20e2432d889cdf to your computer and use it in GitHub Desktop.
Asus X13 2022 gv301 Nixos Hardware config
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" "amdgpu" ];
boot.kernelParams = [ "acpi_backlight=native" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f0d83c7f-323a-4f20-9a9c-e01f946428bf";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-12023ea0-dd96-4210-8779-aabdb473a2e2".device = "/dev/disk/by-uuid/12023ea0-dd96-4210-8779-aabdb473a2e2";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/A618-1FD0";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment