1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-29 20:52:33 +01:00
github.com-tboerger-nixos-c.../profiles/programs/direnv.nix
2022-09-27 22:07:46 +02:00

36 lines
592 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 {
home-manager.users."${config.profile.username}" = { config, ... }: {
programs = {
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv = {
enable = true;
};
};
};
};
};
}