Update python settings in home-manager

This commit is contained in:
Greg Hellings
2025-05-28 11:21:12 -05:00
parent ff9ac93287
commit 04723ae03e
3 changed files with 18 additions and 14 deletions
+17 -5
View File
@@ -4,12 +4,24 @@
lib,
...
}:
let
cfg = config.greg.pypackage;
in
{
options.greg.pypackage = lib.mkOption {
description = "Enable Gnome support and settings";
type = lib.types.package;
default = pkgs.gregpy;
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;
};
};
config.home.packages = [ config.greg.pypackage ];
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}