nixos-config/features/nix-direnv.nix
Sridhar Ratnakumar 483b9514d9 add m1 mac config
2021-12-18 16:35:11 -05:00

18 lines
474 B
Nix

{ config, pkgs, rosettaPkgs, ... }:
{
# 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; }; })
];
}