Add gamin module in both nixos and home-manager
This commit is contained in:
parent
2b7d1ec452
commit
f9062e9d15
7 changed files with 71 additions and 11 deletions
6
modules/nixos/default.nix
Normal file
6
modules/nixos/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_:
|
||||
{
|
||||
imports = [
|
||||
./gaming/steam
|
||||
];
|
||||
}
|
28
modules/nixos/gaming/steam/default.nix
Normal file
28
modules/nixos/gaming/steam/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue