got conditional direnv loading working for zsh and bash

This commit is contained in:
Gerg-L 2023-06-26 19:22:20 -04:00
parent f43d0b741c
commit f2974e6b13
5 changed files with 29 additions and 19 deletions

View file

@ -8,7 +8,6 @@ inputs: {pkgs, ...}: {
warn-dirty = false;
#ignore global registry
flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
use-xdg-base-directories = true;
#use for testing
#allow-import-from-derivation = false;
trusted-users = [
@ -17,6 +16,11 @@ inputs: {pkgs, ...}: {
];
allowed-users = [
];
use-xdg-base-directories = true;
};
};
#fix for use-xdg-base-directories
environment.profiles = [
"$HOME/.local/state/nix/profiles/profile"
];
}