feat(devenv): add enable option
This commit is contained in:
@@ -58,6 +58,7 @@
|
|||||||
git.github.enable = true;
|
git.github.enable = true;
|
||||||
shell.bash.aliases.lang-js = true;
|
shell.bash.aliases.lang-js = true;
|
||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
|
devenv.enable = true;
|
||||||
pandoc.enable = true;
|
pandoc.enable = true;
|
||||||
photography.enable = true;
|
photography.enable = true;
|
||||||
torrenting.enable = true;
|
torrenting.enable = true;
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
shell.bash.aliases.lang-js = true;
|
shell.bash.aliases.lang-js = true;
|
||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
my.yubikey.enable = true;
|
my.yubikey.enable = true;
|
||||||
|
devenv.enable = true;
|
||||||
nfc.enable = true;
|
nfc.enable = true;
|
||||||
pandoc.enable = true;
|
pandoc.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
browser.primary = "firefox";
|
browser.primary = "firefox";
|
||||||
|
devenv.enable = true;
|
||||||
my.dconf.enable = true;
|
my.dconf.enable = true;
|
||||||
pandoc.enable = true;
|
pandoc.enable = true;
|
||||||
browser.secondary = "chromium";
|
browser.secondary = "chromium";
|
||||||
|
|||||||
@@ -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