feat(devenv): add enable option
This commit is contained in:
1 parent
bc2f0477ca
commit
f2ffedfb76
4 files changed
+20
-2
No files matched your search
@@ -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 ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user