started the steam box set up

This commit is contained in:
Chris Kruining 2025-06-15 16:07:10 +02:00
parent b9c54a5660
commit be896b7739
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
13 changed files with 129 additions and 25 deletions

View file

@ -0,0 +1,20 @@
{ inputs, lib, config, ... }: let
inherit (lib) mkEnableOption mkIf;
cfg = config.modules.desktop.gaming;
in
{
imports = [ inputs.jovian.nixosModules.default ];
options.modules.desktop.gaming = {
enable = mkEnableOption "enable steamdeck like desktop";
};
config = mkIf cfg.enable {
jovian.steam = {
enable = true;
autoStart = true;
};
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];

View file

@ -1,15 +1,10 @@
{ inputs, config, options, lib, pkgs, ... }:
{ config, lib, ... }:
let
inherit (builtins) pathExists toString;
inherit (lib.lists) findFirst;
inherit (lib.modules) mkAliasDefinitions;
inherit (lib.types) attrs;
inherit (lib.my) mkOpt;
in
{
options = let
inherit (lib.types) attrs path;
inherit (lib.my) mkOpt;
in
{
options = {
user = mkOpt attrs {};
};

View file

@ -1,4 +1,4 @@
{ config, options, lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf;

View file

@ -1,15 +1,12 @@
{ config, options, lib, pkgs, ... }:
{ config, lib, ... }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.modules.system.bluetooth;
in
{
options.modules.system.bluetooth = let
inherit (lib.options) mkEnableOption;
in
{
options.modules.system.bluetooth = {
enable = mkEnableOption "enable bluetooth";
};