diff --git a/profiles/host_common.nix b/profiles/host_common.nix index ced9b66..8ba3cb8 100644 --- a/profiles/host_common.nix +++ b/profiles/host_common.nix @@ -88,7 +88,6 @@ systemPackages = with pkgs; [ bat # cat clone with syntax highlighting & Git integration byobu # text-based window manager and terminal multiplexer. - direnv # A shell extension that manages your environment dnsutils # Bind DNS utilities fd # A simple, fast and user-friendly alternative to find (if config.services.xserver.enable then gitAndTools.gitFull else git) # Distributed version control system diff --git a/profiles/iohk.nix b/profiles/iohk.nix index 08ec34d..0500094 100644 --- a/profiles/iohk.nix +++ b/profiles/iohk.nix @@ -6,6 +6,7 @@ imports = [ ../profiles/terminal-recording.nix + ../profiles/nix-direnv.nix ]; nix = { diff --git a/profiles/nix-direnv.nix b/profiles/nix-direnv.nix new file mode 100644 index 0000000..cb1f3b0 --- /dev/null +++ b/profiles/nix-direnv.nix @@ -0,0 +1,29 @@ +# NixOps configuration nix-direnv + +{ config, pkgs, lib, ... }: + +{ + + nix = { + extraOptions = '' + keep-outputs = true + keep-derivations = true + ''; + }; + + # Set the environment + environment = { + systemPackages = with pkgs; [ + direnv # A shell extension that manages your environment + nix-direnv # A fast, persistent use_nix implementation for direnv + ]; + pathsToLink = [ + "/share/nix-direnv" + ]; + }; + + nixpkgs.overlays = [ + (self: super: { nix-direnv = super.nix-direnv.override { enableFlakes = true; }; } ) + ]; + +}