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 = { greg = {
development = true; development = true;
gui = true; gui = true;
pypackage = pkgs.python311; pypackage.enable = false;
vscodium = true; vscodium = true;
}; };
@@ -38,13 +38,6 @@ in
mise mise
nixStable nixStable
pipenv-ivr pipenv-ivr
(poetry.withPlugins (
ps: with ps; [
poetry-audit-plugin
poetry-plugin-export
poetry-plugin-shell
]
))
pre-commit pre-commit
skaffold skaffold
x x
+17 -5
View File
@@ -4,12 +4,24 @@
lib, lib,
... ...
}: }:
let
cfg = config.greg.pypackage;
in
{ {
options.greg.pypackage = lib.mkOption { options.greg.pypackage = {
description = "Enable Gnome support and settings"; enable = lib.mkOption {
type = lib.types.package; description = "Enable installing my Python package here";
default = pkgs.gregpy; 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 ];
};
} }
-1
View File
@@ -38,7 +38,6 @@ in
diffutils diffutils
git git
gnupatch gnupatch
gregpy
findutils findutils
file file
hms # My own home manager switcher hms # My own home manager switcher