24 lines
535 B
Nix
24 lines
535 B
Nix
{...}: {
|
|
flake.homeModules.leylaDirenv = {
|
|
lib,
|
|
config,
|
|
osConfig,
|
|
...
|
|
}: let
|
|
userConfig = osConfig.host.users.leyla;
|
|
in {
|
|
config = lib.mkIf userConfig.isDesktopUser {
|
|
programs = {
|
|
direnv = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
nix-direnv.enable = true;
|
|
config = {
|
|
global.hide_env_diff = true;
|
|
whitelist.exact = ["${config.home.homeDirectory}/documents/code/nix-config"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|