mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
got conditional direnv loading working for zsh and bash
This commit is contained in:
parent
f43d0b741c
commit
f2974e6b13
5 changed files with 29 additions and 19 deletions
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue