Update python settings in home-manager
This commit is contained in:
@@ -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
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ in
|
||||
diffutils
|
||||
git
|
||||
gnupatch
|
||||
gregpy
|
||||
findutils
|
||||
file
|
||||
hms # My own home manager switcher
|
||||
|
||||
Reference in New Issue
Block a user