diff --git a/hosts/potksed/default.nix b/hosts/potksed/default.nix index 84184f5..fa6e421 100644 --- a/hosts/potksed/default.nix +++ b/hosts/potksed/default.nix @@ -26,6 +26,7 @@ ]; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; + graphical.gaming.enable = true; # TODO goodbye once -sk keys. environment.shellInit = '' diff --git a/modules/optional/graphical/default.nix b/modules/optional/graphical/default.nix index d1903b8..6412a2d 100644 --- a/modules/optional/graphical/default.nix +++ b/modules/optional/graphical/default.nix @@ -1,6 +1,23 @@ -{pkgs, ...}: { +{ + lib, + pkgs, + ... +}: let + inherit + (lib) + mkOption + types + ; +in { imports = [ ./fonts.nix ./wayland.nix + ./steam.nix ]; + + options.graphical.gaming.enable = mkOption { + description = "Enables gaming on this machine and will add a lot of gaming related packages and configuration."; + default = false; + type = types.bool; + }; } diff --git a/modules/optional/graphical/steam.nix b/modules/optional/graphical/steam.nix new file mode 100644 index 0000000..65985c0 --- /dev/null +++ b/modules/optional/graphical/steam.nix @@ -0,0 +1,18 @@ +{ + lib, + config, + pkgs, + ... +}: { + config = lib.mkIf config.graphical.gaming.enable { + programs.steam = { + enable = true; + package = pkgs.steam.override { + extraPkgs = pkgs: + with pkgs; [ + # add packages here in case any game needs them... + ]; + }; + }; + }; +} diff --git a/users/myuser/graphical/default.nix b/users/myuser/graphical/default.nix index 73b3309..85b63ab 100644 --- a/users/myuser/graphical/default.nix +++ b/users/myuser/graphical/default.nix @@ -12,13 +12,14 @@ ./signal.nix ./sway.nix ] - ++ lib.optionals (nixosConfig.node.name == "potksed") [ + ++ lib.optionals nixosConfig.graphical.gaming.enable [ ./games/lutris.nix - #./games/steam.nix ]; home = { packages = with pkgs; [ + appimage-run + yt-dlp thunderbird chromium zathura @@ -26,6 +27,7 @@ sirula ]; + # TODO emoji in firefox are wrong # TODO screenshot selection/all and copy clipboard # TODO screenshot selection/all and save # TODO screenshot selection and scan qr and copy clipboard