From 24b540d9483ef60d1e95b893b1711a7560b05f5c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 15 Sep 2021 16:48:39 +0200 Subject: [PATCH] modules: programs: add steam --- modules/programs/default.nix | 2 +- modules/programs/steam.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 modules/programs/steam.nix diff --git a/modules/programs/default.nix b/modules/programs/default.nix index 85be70e..a6f14ed 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -3,6 +3,6 @@ { imports = [ - # FIXME + ./steam.nix ]; } diff --git a/modules/programs/steam.nix b/modules/programs/steam.nix new file mode 100644 index 0000000..e9f2a2b --- /dev/null +++ b/modules/programs/steam.nix @@ -0,0 +1,15 @@ +{ config, lib, ... }: +let + cfg = config.my.programs.steam; +in +{ + options.my.programs.steam = with lib; { + enable = mkEnableOption "steam configuration"; + }; + + config = lib.mkIf cfg.enable { + programs.steam = { + enable = true; + }; + }; +}