lol

Merge pull request #254296 from Gerg-L/direnv

nixos/direnv: remove persistDerivations

authored by

Fabián Heredia Montiel and committed by
GitHub
8f711593 e40f7390

+4 -14
+4 -14
nixos/modules/programs/direnv.nix
··· 32 32 the hiding of direnv logging 33 33 ''); 34 34 35 - persistDerivations = 36 - (lib.mkEnableOption (lib.mdDoc '' 37 - setting keep-derivations and keep-outputs to true 38 - to prevent shells from getting garbage collected 39 - '')) 40 - // { 41 - default = true; 42 - }; 43 - 44 35 loadInNixShell = 45 36 lib.mkEnableOption (lib.mdDoc '' 46 37 loading direnv in `nix-shell` `nix shell` or `nix develop` ··· 62 53 }; 63 54 }; 64 55 56 + imports = [ 57 + (lib.mkRemovedOptionModule ["programs" "direnv" "persistDerivations"] "persistDerivations was removed as it is on longer necessary") 58 + ]; 59 + 65 60 config = lib.mkIf cfg.enable { 66 61 67 62 programs = { ··· 85 80 ${lib.getExe cfg.package} hook fish | source 86 81 end 87 82 ''; 88 - }; 89 - 90 - nix.settings = lib.mkIf cfg.persistDerivations { 91 - keep-outputs = true; 92 - keep-derivations = true; 93 83 }; 94 84 95 85 environment = {