Simplify evaluations a bit

This commit is contained in:
Greg Hellings
2025-12-07 17:50:55 -06:00
parent fa555f0298
commit 01e6aa22d5
10 changed files with 60 additions and 68 deletions
-1
View File
@@ -5,7 +5,6 @@
./development.nix
./gnome.nix
./gui.nix
./python.nix
./vscodium.nix
./xonsh.nix
./zed.nix
-27
View File
@@ -1,27 +0,0 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.greg.pypackage;
in
{
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 = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}