21 lines
345 B
Nix
21 lines
345 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.gaming.steam;
|
|
in {
|
|
options.gaming.steam = {
|
|
enable = lib.mkEnableOption "enable steam";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.steam = {
|
|
enable = true;
|
|
# requires setting launch option `gamescope %command%`
|
|
gamescopeSession.enable = true;
|
|
};
|
|
};
|
|
}
|