22 lines
447 B
Nix
22 lines
447 B
Nix
{
|
|
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"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|