revise deck system config

This commit is contained in:
Yan Lin 2025-10-28 22:03:55 +01:00
parent 1fa32a8f93
commit 23061f7570
2 changed files with 91 additions and 75 deletions

View file

@ -7,6 +7,9 @@
../../../modules/desktop.nix ../../../modules/desktop.nix
]; ];
# Desktop module configuration (disable GDM for Jovian autoStart mode)
desktop-custom.enableDisplayManager = false;
# Bootloader - standard UEFI setup # Bootloader - standard UEFI setup
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
@ -33,10 +36,8 @@
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
# Graphics configuration for AMD # Graphics configuration for AMD
graphics = { # Note: enable32Bit is set by jovian.steam.enable
enable = true; graphics.enable = true;
enable32Bit = true;
};
# Bluetooth support # Bluetooth support
bluetooth = { bluetooth = {
@ -50,18 +51,10 @@
}; };
}; };
# Sound configuration with PipeWire
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Jovian Steam Deck configuration # Jovian Steam Deck configuration
jovian = { jovian = {
hardware.has.amd.gpu = true; # Enables backlight control and early modesetting
steam = { steam = {
enable = true; enable = true;
autoStart = true; autoStart = true;
@ -71,6 +64,13 @@
devices.steamdeck = { devices.steamdeck = {
enable = true; enable = true;
autoUpdate = true; autoUpdate = true;
enableSoundSupport = true; # Steam Deck-optimized PipeWire with DSP
enableVendorDrivers = true; # Uses Valve's driver branches instead of upstream
};
steamos = {
useSteamOSConfig = true; # Enable SteamOS optimizations (zram, OOM, sysctl, etc.)
enableBluetoothConfig = true; # SteamOS bluetooth defaults
enableAutoMountUdevRules = true; # Auto-mount SD cards
}; };
}; };

View file

@ -1,9 +1,24 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib;
let
cfg = config.desktop-custom;
in
{ {
options.desktop-custom = {
enableDisplayManager = mkOption {
type = types.bool;
default = true;
description = "Enable GDM display manager (conflicts with jovian.steam.autoStart)";
};
};
config = {
# GNOME Desktop Environment # GNOME Desktop Environment
services.xserver.enable = true; services.xserver.enable = true;
services.displayManager.gdm.enable = true; services.displayManager.gdm.enable = mkIf cfg.enableDisplayManager true;
services.desktopManager.gnome.enable = true; services.desktopManager.gnome.enable = true;
# Keyboard layout # Keyboard layout
@ -65,4 +80,5 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
hicolor-icon-theme # Fallback icon theme hicolor-icon-theme # Fallback icon theme
]; ];
};
} }