adjusted workvm configuration
This commit is contained in:
parent
16770c5d67
commit
69e1940191
36 changed files with 466 additions and 326 deletions
24
modules/home/tools/direnv/default.nix
Normal file
24
modules/home/tools/direnv/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
cfg = config.wyrdgard.tools.direnv;
|
||||
in {
|
||||
options.wyrdgard.tools.direnv = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
wyrdgard.home.extraOptions = {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue