2021-09-30 04:03:23 +00:00
|
|
|
# NixOps configuration nix-direnv
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
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
|
|
|
];
|
2021-11-16 04:57:23 +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: {
|
|
|
|
nix-direnv = super.nix-direnv.override { enableFlakes = true; };
|
|
|
|
})
|
2021-09-30 04:03:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|