diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2021-08-05 22:11:40 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2021-08-05 22:19:37 +0200 |
commit | 8c5c0d6748806bb6282ee479799c010d5f67a685 (patch) | |
tree | ffce1bc29a563a2a33ed1511844f2eba9d69514d /nixos | |
parent | 7de613db995c79685c216524b8b6f73a2521dc46 (diff) |
nixos: fix zinputrc on flake-enabled systems
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 6c824a692b75e..dc6c958ca88b2 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -278,7 +278,10 @@ in fi ''; - environment.etc.zinputrc.source = ./zinputrc; + # Bug in nix flakes: + # If we use `.source` here the path is garbage collected also we point to it with a symlink + # see https://github.com/NixOS/nixpkgs/issues/132732 + environment.etc.zinputrc.text = builtins.readFile ./zinputrc; environment.systemPackages = let |