1
Fork 0
satellite/home/features/cli/direnv.nix

19 lines
490 B
Nix
Raw Normal View History

{ config, ... }:
let statePath = "${config.xdg.dataHome}/direnv/allow";
in
{
2023-01-15 21:37:30 +01:00
programs.direnv.enable = true;
2023-01-15 21:38:41 +01:00
programs.direnv.nix-direnv.enable = true;
2023-01-15 21:37:30 +01:00
home.sessionVariables = {
# No more long command warnings
DIRENV_WARN_TIMEOUT = "24h";
# No more usesless logs
DIRENV_LOG_FORMAT = "";
};
2023-11-04 20:18:14 +01:00
# Only save allowed paths for 30d
systemd.user.tmpfiles.rules = [ "d ${statePath} - - - 30d" ];
satellite.persistence.at.state.apps.direnv.directories = [ statePath ];
2023-01-15 21:37:30 +01:00
}