diff --git a/nixos/configurations/Tytonidae/default.nix b/nixos/configurations/Tytonidae/default.nix index b24209a..2e8d26e 100644 --- a/nixos/configurations/Tytonidae/default.nix +++ b/nixos/configurations/Tytonidae/default.nix @@ -25,6 +25,7 @@ programs = { dae.enable = true; openssh.enable = true; + steam.enable = true; }; }; diff --git a/nixos/configurations/Tytonidae/steam.nix b/nixos/modules/steam.nix similarity index 66% rename from nixos/configurations/Tytonidae/steam.nix rename to nixos/modules/steam.nix index c0b639e..f8a3271 100644 --- a/nixos/configurations/Tytonidae/steam.nix +++ b/nixos/modules/steam.nix @@ -1,6 +1,14 @@ -{ ... }: +{ lib, config, ... }: +let + cfg = config.youthlic.programs.steam; +in { - config = { + options = { + youthlic.programs.steam = { + enable = lib.mkEnableOption "steam"; + }; + }; + config = lib.mkIf cfg.enable { hardware.graphics.enable32Bit = true; programs.steam = { enable = true;