user/direnv: clear cache on activation
also changed the layout name to be a bit easier to find if need be
This commit is contained in:
parent
b333c10ac6
commit
3a5115c86a
2 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, ...}: {
|
||||
{ config, lib, ... }: {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv = {
|
||||
|
|
@ -8,4 +8,9 @@
|
|||
programs.git.extraConfig.core.excludesFile = ".envrc";
|
||||
# We can't use .source since hm manages this file too
|
||||
xdg.configFile."direnv/direnvrc".text = builtins.readFile ../../res/direnvrc;
|
||||
home.activation = {
|
||||
direnvClearCache = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
$DRY_RUN_CMD rm -rf $VERBOSE_ARG $HOME/.cache/direnv/layouts
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue