enable steamdeck stuffs

This commit is contained in:
mjallen18
2025-02-08 16:01:16 -06:00
parent e3284d89b6
commit 084930518a
3 changed files with 119 additions and 48 deletions

View File

@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports =
@@ -15,14 +15,43 @@
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config.allowUnfree = true;
# Enable nix flakes and nix-command tools
nix = {
settings = {
warn-dirty = lib.mkForce false;
experimental-features = lib.mkForce [
"nix-command"
"flakes"
];
};
# Garbage collect automatically every week
gc.automatic = lib.mkDefault true;
gc.options = lib.mkDefault "--delete-older-than 30d";
optimise.automatic = lib.mkDefault true;
};
jovian = {
steam = {
enable = true;
autoStart = true;
user = "deck";
# desktopSession = "plasma5";
desktopSession = "plasma6";
};
steamos = {
useSteamOSConfig = true;
};
devices = {
steamdeck = {
enable = true;
enableGyroDsuService = true; # If enabled, motion data from the gyroscope can be used in Cemu with Cemuhoo
};
};
hardware.has.amd.gpu = true;
};
# networking.hostName = "nixos"; # Define your hostname.
@@ -52,6 +81,10 @@
services.xserver.displayManager.sddm.enable = false;
services.xserver.desktopManager.plasma5.enable = false;
services.desktopManager.plasma6 = {
enable = true;
enableQt5Integration = true;
};
# Configure keymap in X11
# services.xserver.xkb.layout = "us";