feat(pkg): setup direnv for automatic directory environments
This commit is contained in:
8
home.nix
8
home.nix
@@ -39,6 +39,14 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://github.com/nix-community/nix-direnv/
|
||||||
|
programs.direnv =
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.unclutter.enable = true;
|
services.unclutter.enable = true;
|
||||||
services.gpg-agent.enable = true;
|
services.gpg-agent.enable = true;
|
||||||
services.blueman-applet.enable = true;
|
services.blueman-applet.enable = true;
|
||||||
|
|||||||
@@ -122,6 +122,11 @@
|
|||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
# https://github.com/nix-community/nix-direnv/
|
||||||
|
nix.extraOptions = ''
|
||||||
|
keep-outputs = true
|
||||||
|
keep-derivations = true
|
||||||
|
'';
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|||||||
@@ -25,6 +25,9 @@
|
|||||||
".watsonrc"
|
".watsonrc"
|
||||||
".idea"
|
".idea"
|
||||||
".vscode"
|
".vscode"
|
||||||
|
"shell.nix"
|
||||||
|
".envrc"
|
||||||
|
".direnv"
|
||||||
];
|
];
|
||||||
|
|
||||||
# see https://github.com/dandavison/delta#get-started
|
# see https://github.com/dandavison/delta#get-started
|
||||||
|
|||||||
Reference in New Issue
Block a user