update homemanager settings

This commit is contained in:
christoph.hollizeck 2024-03-26 22:19:05 +01:00
parent 799fad03d5
commit 3ccec13d28

View file

@ -1,24 +1,18 @@
{ { options, config, lib, pkgs, ... }:
options,
config,
lib,
pkgs,
...
}:
with lib; with lib;
with lib.wyrdgard; let with lib.wyrdgard;
cfg = config.wyrdgard.tools.direnv; let cfg = config.wyrdgard.tools.direnv;
in { in
{
options.wyrdgard.tools.direnv = with types; { options.wyrdgard.tools.direnv = with types; {
enable = mkBoolOpt false "Whether or not to enable direnv."; enable = mkBoolOpt false "Whether or not to enable direnv.";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
wyrdgard.home.extraOptions = {
programs.direnv = { programs.direnv = {
enable = true; enable = true;
nix-direnv = enabled; nix-direnv = enabled;
}; };
}; };
};
} }