mio-ops/profiles/nix-direnv.nix

30 lines
566 B
Nix
Raw Permalink Normal View History

2021-09-30 04:03:23 +00:00
# NixOps configuration nix-direnv
{
2022-03-07 14:26:15 +00:00
config,
pkgs,
lib,
...
}: {
2021-09-30 04:03:23 +00:00
nix = {
extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
};
# Set the environment
environment = {
systemPackages = with pkgs; [
2021-11-16 04:57:23 +00:00
direnv # A shell extension that manages your environment
nix-direnv # A fast, persistent use_nix implementation for direnv
2021-09-30 04:03:23 +00:00
];
2022-03-07 14:26:15 +00:00
pathsToLink = ["/share/nix-direnv"];
2021-09-30 04:03:23 +00:00
};
nixpkgs.overlays = [
2021-11-16 04:57:23 +00:00
(self: super: {
2024-02-06 04:01:50 +00:00
#nix-direnv = super.nix-direnv.override {enableFlakes = true;};
2021-11-16 04:57:23 +00:00
})
2021-09-30 04:03:23 +00:00
];
}