modules: programs: add steam

This commit is contained in:
Bruno BELANYI 2021-09-15 16:48:39 +02:00
parent 45321072fc
commit 37bb7fd625
2 changed files with 16 additions and 1 deletions

View file

@ -3,6 +3,6 @@
{
imports = [
# FIXME
./steam.nix
];
}

View file

@ -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;
};
};
}