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
+1 -8
View File
@@ -22,7 +22,7 @@ in
greg = {
development = true;
gui = true;
pypackage = pkgs.python311;
pypackage.enable = false;
vscodium = true;
};
@@ -38,13 +38,6 @@ in
mise
nixStable
pipenv-ivr
(poetry.withPlugins (
ps: with ps; [
poetry-audit-plugin
poetry-plugin-export
poetry-plugin-shell
]
))
pre-commit
skaffold
x
+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 ];
};
}