Skip to content

/etc/zinputrc points to non-existant store path #132732

@Emantor

Description

@Emantor

Describe the bug

My /etc/zinputrc points to a non-existant store path.

/etc/zshrc:.:36: no such file or directory: /etc/zinputrc
 ~  ls -la /etc/zinputrc
lrwxrwxrwx 1 root root 20  5. Aug 06:27 /etc/zinputrc -> /etc/static/zinputrc
 ~  ls -la /etc/static/zinputrc
lrwxrwxrwx 1 root root 86  1. Jan 1970  /etc/static/zinputrc -> /nix/store/4l9d555va23q26p985kwr2rzfn01n6vw-source/nixos/modules/programs/zsh/zinputrc
 ~  ls -la /nix/store/4l9d555va23q26p985kwr2rzfn01n6vw-source/nixos/modules/programs/zsh/zinputrc
ls: cannot access '/nix/store/4l9d555va23q26p985kwr2rzfn01n6vw-source/nixos/modules/programs/zsh/zinputrc': No such file or directory
 ~

zinputrc is contained in my nix store, however not within source, but rather nixos:

 /nix/store    find . -iname  "*zinputrc*"
./gczx49730qfzz925ic7fvcbha1dwi86c-nixos-21.11pre294109.fbfb79400a0/nixos/nixos/modules/programs/zsh/zinputrc
./44aqds9n45x0qnc1s7kcf361kkgffjpg-etc/etc/zinputrc
./ychirbiy3rrh4s6y7xyfghpdvv5vrxpw-nixos-21.11pre306003.c464dc811ba/nixos/nixos/modules/programs/zsh/zinputrc

Steps To Reproduce

Steps to reproduce the behavior:

  1. enable programs.zsh
  2. Rebuild with latest nixos-unstable
  3. start zsh

Expected behavior

No error on opening a terminal

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

This is probably related to #131102.

Notify maintainers

Not a maintainer but author of the make-etc change:
@dasJ

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.13.6, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210707_02dd6bb`
 - channels(root): `"nixos-21.11pre306003.c464dc811ba"`
 - channels(phoenix): `"ptxpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module: programs/zsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions