nix-direnv

This commit is contained in:
Sridhar Ratnakumar 2021-12-11 18:06:05 -05:00
parent 9486654c4a
commit 570e2e0b8a
3 changed files with 1 additions and 19 deletions

View file

@ -1,18 +0,0 @@
{ config, pkgs, ... }:
{
# https://github.com/nix-community/nix-direnv
environment.systemPackages = with pkgs; [ direnv nix-direnv ];
# nix options for derivations to persist garbage collection
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
environment.pathsToLink = [
"/share/nix-direnv"
];
nixpkgs.overlays = [
(self: super: { nix-direnv = super.nix-direnv.override { enableFlakes = true; }; })
];
}

View file

@ -48,7 +48,6 @@
./features/caches
./features/current-location.nix
./features/passwordstore.nix
./features/dev/nix-direnv.nix
# home-manager configuration
home-manager.nixosModules.home-manager

View file

@ -118,6 +118,7 @@ rec {
enableBashIntegration = true;
nix-direnv = {
enable = true;
enableFlakes = true;
};
};