Files
nixos/home/modules/python.nix
T

28 lines
492 B
Nix
Raw Normal View History

2024-10-19 01:19:59 -05:00
{
config,
pkgs,
lib,
...
}:
2025-05-28 11:21:12 -05:00
let
cfg = config.greg.pypackage;
in
{
2025-05-28 11:21:12 -05:00
options.greg.pypackage = {
enable = lib.mkOption {
description = "Enable installing my Python package here";
type = lib.types.bool;
default = true;
};
package = lib.mkOption {
description = "Enable Gnome support and settings";
type = lib.types.package;
default = pkgs.gregpy;
};
};
2025-05-28 11:21:12 -05:00
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}