1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Game store { config, lib, pkgs, ... }: let cfg = config.gaming.steam; in { options.gaming.steam = { enable = lib.mkEnableOption "Enables steam."; package = lib.mkOption { type = lib.types.package; default = pkgs.steam; description = "Package for steam app."; }; }; config = lib.mkIf cfg.enable { home.packages = [ cfg.package ]; }; }