ref(nix): mkOptions

This commit is contained in:
Léana 江 2024-02-27 01:23:20 +01:00 committed by Léana 江
parent d98d30916b
commit 989d025f56
42 changed files with 80 additions and 78 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" ]
'';
};
}