From 0719670abd747e1bfecf89353fed01f25b0af296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 13 Jun 2022 17:12:45 +0200 Subject: nixos/modules: add gaming --- nixos/modules/gaming.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nixos/modules/gaming.nix (limited to 'nixos/modules/gaming.nix') diff --git a/nixos/modules/gaming.nix b/nixos/modules/gaming.nix new file mode 100644 index 0000000..1065de7 --- /dev/null +++ b/nixos/modules/gaming.nix @@ -0,0 +1,32 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + + cnf = config.cynerd.gaming; + +in { + + options = { + cynerd.gaming = mkOption { + type = types.bool; + default = false; + description = "Enable gaming"; + }; + }; + + config = mkIf cnf { + cynerd.desktop.enable = true; + + environment.systemPackages = with pkgs; [ + minigalaxy + ]; + + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + }; + + }; +} -- cgit v1.2.3