feat(devenv): add enable option
This commit is contained in:
@@ -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