home: move zsh and direnv to new modules

This commit is contained in:
2024-01-28 12:33:14 +01:00
parent 60ccfeaf39
commit 29d6b63382
5 changed files with 122 additions and 73 deletions

View File

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.modules.shell.direnv;
in {
options.modules.shell.direnv = { enable = mkOption { default = false; }; };
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
enableZshIntegration = true;
};
};
}