2023-05-14 23:25:48 +00:00
|
|
|
# Nix configuration nix-direnv
|
2021-10-07 02:13:48 +00:00
|
|
|
{
|
2022-08-15 07:32:25 +00:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2021-10-07 02:13:48 +00:00
|
|
|
nix = {
|
|
|
|
extraOptions = ''
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
# Set the environment
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
2022-08-15 07:32:25 +00:00
|
|
|
direnv # A shell extension that manages your environment
|
2023-12-04 08:52:15 +00:00
|
|
|
#nix-direnv # A fast, persistent use_nix implementation for direnv
|
2021-10-07 02:13:48 +00:00
|
|
|
];
|
2023-12-04 08:52:15 +00:00
|
|
|
# pathsToLink = [
|
|
|
|
# "/share/nix-direnv"
|
|
|
|
# ];
|
2021-10-07 02:13:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
2022-08-15 07:32:25 +00:00
|
|
|
(self: super: {nix-direnv = super.nix-direnv.override {enableFlakes = true;};})
|
2021-10-07 02:13:48 +00:00
|
|
|
];
|
|
|
|
}
|