mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-15 03:37:54 +08:00
nix-direnv
This commit is contained in:
parent
9486654c4a
commit
570e2e0b8a
3 changed files with 1 additions and 19 deletions
|
|
@ -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; }; })
|
||||
];
|
||||
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
1
home.nix
1
home.nix
|
|
@ -118,6 +118,7 @@ rec {
|
|||
enableBashIntegration = true;
|
||||
nix-direnv = {
|
||||
enable = true;
|
||||
enableFlakes = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue