feat(devenv): add enable option

This commit is contained in:
hektor committed 2026-05-24 15:59:56 +02:00
1 parent bc2f0477ca
commit f2ffedfb76
4 files changed
+20 -2

No files matched your search

+17 -2
View File
@@ -1,4 +1,19 @@
{ pkgs, ... }:
{
home.packages = [ pkgs.devenv ];
config,
lib,
pkgs,
...
}:
let
cfg = config.devenv;
in
{
options.devenv = {
enable = lib.mkEnableOption "devenv";
};
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.devenv ];
};
}