mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
add(nix): direnv whitelist
This commit is contained in:
parent
8853e38ba1
commit
2a5496aed0
3 changed files with 19 additions and 8 deletions
15
nix/home/common/direnv/default.nix
Normal file
15
nix/home/common/direnv/default.nix
Normal 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" ]
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue