update deck hardware config

This commit is contained in:
Yan Lin 2025-11-02 19:48:31 +01:00
parent 236724a3ae
commit 328b8d6411
2 changed files with 18 additions and 32 deletions

View file

@ -1,43 +1,28 @@
# Placeholder hardware configuration for Steam Deck # Do not modify this file! It was generated by nixos-generate-config
# # and may be overwritten by future invocations. Please make changes
# This file must be generated on the actual Steam Deck hardware. # to /etc/nixos/configuration.nix instead.
#
# To generate this file:
# 1. Boot into the Jovian-NixOS installer ISO on the Steam Deck
# 2. Run: nixos-generate-config --root /mnt --show-hardware-config > hardware-configuration.nix
# 3. Copy the generated file to this location
#
# The generated file will include:
# - CPU and GPU detection
# - Storage device configuration
# - Kernel modules for Steam Deck hardware
# - File system configuration
#
# DO NOT attempt to use this placeholder for installation.
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ ]; imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
# Placeholder - will be replaced by actual hardware detection boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
boot.initrd.availableKernelModules = [ ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
# Placeholder filesystem configuration # Filesystem and swap configuration managed by disko (see disk-config.nix)
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = { # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
device = "/dev/disk/by-label/boot"; # (the default) this is the recommended approach. When using systemd-networkd it's
fsType = "vfat"; # 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;
swapDevices = [ ]; # networking.interfaces.enp4s0f3u1u1c2.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./disk-config.nix
../system-default.nix # Common NixOS system configuration ../system-default.nix # Common NixOS system configuration
../../../modules/desktop.nix ../../../modules/desktop.nix
]; ];