Add gamin module in both nixos and home-manager

This commit is contained in:
Yorick Barbanneau 2023-12-26 00:30:05 +01:00
parent 2b7d1ec452
commit f9062e9d15
7 changed files with 71 additions and 11 deletions

View file

@ -0,0 +1,6 @@
_:
{
imports = [
./gaming/steam
];
}

View file

@ -0,0 +1,28 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.gaming.steam;
in
{
options.modules.gaming.steam = {
enable = mkEnableOption "Enable Steam Platform";
gamescope = mkOption {
type = types.bool;
default = false;
description = "enable gamescope session (default false)";
};
gamemode = mkOption {
type = types.bool;
default = false;
description = "enable Feral Gamemode (default false)";
};
};
config = mkIf cfg.enable {
programs.gamemode.enable = cfg.gamemode;
programs.gamescope.enable = cfg.gamescope;
programs.steam = {
enable = true;
};
};
}