modules: programs: add steam

This commit is contained in:
Bruno BELANYI 2021-09-15 16:48:39 +02:00
parent 91489d5b71
commit 24b540d948
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;
};
};
}