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 # 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`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }: { lib, pkgs, ... }:
{ {
imports = imports =
@@ -15,14 +15,43 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config.allowUnfree = 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 = { jovian = {
steam = { steam = {
enable = true; enable = true;
autoStart = true; autoStart = true;
user = "deck"; 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. # networking.hostName = "nixos"; # Define your hostname.
@@ -52,6 +81,10 @@
services.xserver.displayManager.sddm.enable = false; services.xserver.displayManager.sddm.enable = false;
services.xserver.desktopManager.plasma5.enable = false; services.xserver.desktopManager.plasma5.enable = false;
services.desktopManager.plasma6 = {
enable = true;
enableQt5Integration = true;
};
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.xkb.layout = "us"; # services.xserver.xkb.layout = "us";

View File

@@ -1,60 +1,98 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "uas" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"usbhid"
"usb_storage"
"uas"
"sd_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "none"; device = "none";
fsType = "tmpfs"; fsType = "tmpfs";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/A06F-3014"; device = "/dev/disk/by-uuid/A06F-3014";
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/nix" = fileSystems."/nix" = {
{ device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a"; device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=nix" ]; options = [
"subvol=nix"
"compress=zstd"
"noatime"
"autodefrag"
];
}; };
fileSystems."/etc" = fileSystems."/etc" = {
{ device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a"; device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=etc" ]; options = [
"subvol=etc"
"compress=zstd"
"noatime"
"autodefrag"
];
}; };
fileSystems."/root" = fileSystems."/root" = {
{ device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a"; device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=root" ]; options = [
"subvol=root"
"compress=zstd"
"noatime"
"autodefrag"
];
}; };
fileSystems."/var/log" = fileSystems."/var/log" = {
{ device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a"; device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=log" ]; options = [
"subvol=log"
"compress=zstd"
"noatime"
"autodefrag"
];
}; };
fileSystems."/home" = fileSystems."/home" = {
{ device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a"; device = "/dev/disk/by-uuid/4dd9fe16-dec7-48da-80af-de2c603a136a";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=home" ]; options = [
"subvol=home"
"compress=zstd"
"noatime"
"autodefrag"
];
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/da9dfb00-c2ac-4105-a75f-f498973a32f0"; } { device = "/dev/disk/by-uuid/da9dfb00-c2ac-4105-a75f-f498973a32f0"; }
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { ... }:
let let
shellAliases = { shellAliases = {
ll = "ls -alh"; ll = "ls -alh";