Periodically clean up direnv permissions
This commit is contained in:
parent
15d06fd26a
commit
c16961d55e
|
@ -1,4 +1,7 @@
|
|||
{ config, ... }: {
|
||||
{ config, ... }:
|
||||
let statePath = "${config.xdg.dataHome}/direnv/allow";
|
||||
in
|
||||
{
|
||||
programs.direnv.enable = true;
|
||||
programs.direnv.nix-direnv.enable = true;
|
||||
|
||||
|
@ -9,7 +12,7 @@
|
|||
DIRENV_LOG_FORMAT = "";
|
||||
};
|
||||
|
||||
satellite.persistence.at.state.apps.direnv.directories = [
|
||||
"${config.xdg.dataHome}/direnv/allow"
|
||||
];
|
||||
# Only save allowed paths for 30d
|
||||
systemd.user.tmpfiles.rules = [ "d ${statePath} - - - 30d" ];
|
||||
satellite.persistence.at.state.apps.direnv.directories = [ statePath ];
|
||||
}
|
||||
|
|
|
@ -290,6 +290,7 @@ in
|
|||
event = "BufReadPost";
|
||||
|
||||
opts.enabled = true;
|
||||
# TODO: blacklist harpoon, NeogitStatus
|
||||
};
|
||||
# }}}
|
||||
# {{{ harpoon
|
||||
|
|
Loading…
Reference in a new issue