flake/modules/nixos/unfree/steam.nix
2024-07-13 22:28:27 +00:00

24 lines
532 B
Nix

{ pkgs, lib, config, ... }: {
options.mods.unfree.steam = {
enable = lib.mkEnableOption {
default = false;
description = "enables proprietary steam software";
};
packages = lib.mkOption {
default = [
"steam"
"steam-original"
"steam-run"
];
description = "unfree packages";
};
};
config = lib.mkIf config.mods.unfree.steam.enable {
# nixos.wiki/wiki/Steam
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
};
};
}