Update python settings in home-manager
This commit is contained in:
@@ -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
@@ -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 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user