18 lines
398 B
Nix
18 lines
398 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
with lib;
|
|
with lib.custom;
|
|
let
|
|
cfg = config.modules.desktop.gaming.steam;
|
|
in {
|
|
options.modules.desktop.gaming.steam = with types; {
|
|
enable = mkBoolOpt false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.steam.enable = true;
|
|
|
|
# better for steam proton games
|
|
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
|
|
};
|
|
}
|