git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #132818 from Mic92/zinputrc

nixos: fix zinputrc on flake-enabled systems

commit5007f2e422f121a4e8d61db5525f2abde4f14d9b authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 5 Aug 2021, 22:06 (5 years ago) parentc89430b8c5c0d6
1 file changed+4−1
nixos/modules/programs/zsh/zsh.nix+4−1
nixos/modules/programs/zsh/zsh.nix+4−1
@@ -278,7 +278,10 @@ in
278278 fi
279279 '';
280280
281− environment.etc.zinputrc.source = ./zinputrc;
281+ # Bug in nix flakes:
282+ # If we use `.source` here the path is garbage collected also we point to it with a symlink
283+ # see https://github.com/NixOS/nixpkgs/issues/132732
284+ environment.etc.zinputrc.text = builtins.readFile ./zinputrc;
282285
283286 environment.systemPackages =
284287 let