add(nix): direnv whitelist

This commit is contained in:
Léana 江 2024-02-21 07:11:30 +01:00 committed by Léana 江
parent 8853e38ba1
commit 2a5496aed0
3 changed files with 19 additions and 8 deletions

View file

@ -0,0 +1,15 @@
{config, ...}: {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
config = let
home = config.home.homeDirectory;
in
builtins.fromTOML ''
[global]
strict_env = true
[whitelist]
prefix = [ "${home}/repos", "${home}/univ-repos", "${home}/playground" ]
'';
};
}