Browse Source

direnv: added nix-direnv

consensus
Craige McWhirter 2 months ago
parent
commit
a2f5e437e2
Signed by: craige GPG Key ID: 7DBA9F5689EFB6AA
  1. 1
      profiles/host_common.nix
  2. 1
      profiles/iohk.nix
  3. 29
      profiles/nix-direnv.nix

1
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

1
profiles/iohk.nix

@ -6,6 +6,7 @@
imports = [
../profiles/terminal-recording.nix
../profiles/nix-direnv.nix
];
nix = {

29
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; }; } )
];
}
Loading…
Cancel
Save