mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
27 lines
350 B
Nix
27 lines
350 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.personal.programs.steam;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
personal = {
|
|
programs = {
|
|
steam = {
|
|
enable = mkEnableOption "Steam";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs = {
|
|
steam = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|