feat(devenv): add enable option

This commit is contained in:
2026-05-22 09:53:55 +02:00
parent bc2f0477ca
commit f2ffedfb76
4 changed files with 20 additions and 2 deletions

View File

@@ -58,6 +58,7 @@
git.github.enable = true;
shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true;
devenv.enable = true;
pandoc.enable = true;
photography.enable = true;
torrenting.enable = true;

View File

@@ -55,6 +55,7 @@
shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true;
my.yubikey.enable = true;
devenv.enable = true;
nfc.enable = true;
pandoc.enable = true;

View File

@@ -64,6 +64,7 @@
};
browser.primary = "firefox";
devenv.enable = true;
my.dconf.enable = true;
pandoc.enable = true;
browser.secondary = "chromium";

View File

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