diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-04 19:33:58 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:44 -0700 |
| commit | 1c6018152280462535d471aed61e4890ea160c4b (patch) | |
| tree | 44e026b94245c0f91536f4ec7d940e0cf42ef049 /snowfall/modules/nixos/apps/steam | |
| parent | fc0268a11ce5f3a797fdcb929555ee2344b6fa97 (diff) | |
migration: steam
Diffstat (limited to 'snowfall/modules/nixos/apps/steam')
| -rw-r--r-- | snowfall/modules/nixos/apps/steam/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/snowfall/modules/nixos/apps/steam/default.nix b/snowfall/modules/nixos/apps/steam/default.nix new file mode 100644 index 0000000..b9baebf --- /dev/null +++ b/snowfall/modules/nixos/apps/steam/default.nix @@ -0,0 +1,18 @@ +{ options, config, lib, pkgs, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.apps.steam; +in { + options.${namespace}.apps.steam = with types; { + enable = mkEnableOption "steam"; + }; + + config = mkIf cfg.enable { + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "steam" + "steam-unwrapped" + ]; + + programs.steam.enable = true; + }; +} |