1
0
Fork 0
mirror of https://github.com/tboerger/nixos-config synced 2024-05-23 18:46:03 +02:00
github.com-tboerger-nixos-c.../home/shared/programs/direnv.nix
2024-01-30 14:00:26 +01:00

35 lines
532 B
Nix

{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.profile.programs.direnv;
in
{
options = {
profile = {
programs = {
direnv = {
enable = mkEnableOption "Direnv" // {
default = true;
};
};
};
};
};
config = mkIf cfg.enable {
programs = {
direnv = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
nix-direnv = {
enable = true;
};
};
};
};
}