forked from mirrors_public/oddlama_nix-config
feat: enable steam and gate gaming options behind option
This commit is contained in:
parent
69b0166a6b
commit
35e51873b8
4 changed files with 41 additions and 3 deletions
|
@ -26,6 +26,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
||||||
|
graphical.gaming.enable = true;
|
||||||
|
|
||||||
# TODO goodbye once -sk keys.
|
# TODO goodbye once -sk keys.
|
||||||
environment.shellInit = ''
|
environment.shellInit = ''
|
||||||
|
|
|
@ -1,6 +1,23 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit
|
||||||
|
(lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./wayland.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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
18
modules/optional/graphical/steam.nix
Normal file
18
modules/optional/graphical/steam.nix
Normal file
|
@ -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...
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -12,13 +12,14 @@
|
||||||
./signal.nix
|
./signal.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
]
|
]
|
||||||
++ lib.optionals (nixosConfig.node.name == "potksed") [
|
++ lib.optionals nixosConfig.graphical.gaming.enable [
|
||||||
./games/lutris.nix
|
./games/lutris.nix
|
||||||
#./games/steam.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
appimage-run
|
||||||
|
yt-dlp
|
||||||
thunderbird
|
thunderbird
|
||||||
chromium
|
chromium
|
||||||
zathura
|
zathura
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
sirula
|
sirula
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# TODO emoji in firefox are wrong
|
||||||
# TODO screenshot selection/all and copy clipboard
|
# TODO screenshot selection/all and copy clipboard
|
||||||
# TODO screenshot selection/all and save
|
# TODO screenshot selection/all and save
|
||||||
# TODO screenshot selection and scan qr and copy clipboard
|
# TODO screenshot selection and scan qr and copy clipboard
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue