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.wyrdgard; let
cfg = config.wyrdgard.tools.direnv;
in {
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;
};
};
};
}