1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-30 18:38:31 +02:00
home-manager/modules
Robin Stumm 89dc8c2004
home-environment: fix home.activation.checkLinkTargets
Problem
-------

We resolve symlinks from inside `/nix/store/HASH-home-manager-files`
into the nix store as `/nix/store/HASH-DRVNAME` which does not match
the pattern.

This happened to me because I pull in some repos in via `home.file`.
The `home-manager-files` derivation links to the repo's derivation in
the nix store. For example:

    let nanorcs = fetchFromGitHub {
      owner = "scopatz";
      repo = "nanorc";
      …
    }; in [
      {
        target = ".nano";
        source = nanorcs;
      }
      {
        target = ".nanorc";
        source = "${nanorcs}/nanorc";
      }
    ]

Solution
--------

Call `readlink` without `-e` to obtain only the first redirection from
`~` to `/nix/store/HASH-home-manager-files`.
2017-07-08 00:38:57 +02:00
..
lib Add basic directed acyclic graph data structure 2017-05-04 00:39:36 +02:00
lib-bash Credit original source for shell color code 2017-05-14 20:35:13 +02:00
misc gtk: fix bug in condition 2017-01-17 18:16:45 +01:00
programs browserpass: add module (#16) 2017-06-30 22:45:09 +02:00
services gpg-agent: use systemd socket activation 2017-06-29 23:33:28 +02:00
default.nix browserpass: add module (#16) 2017-06-30 22:45:09 +02:00
home-environment.nix home-environment: fix home.activation.checkLinkTargets 2017-07-08 00:38:57 +02:00
manual.nix manual: add module 2017-01-15 23:42:48 +01:00
systemd.nix systemd: add support for socket units 2017-06-29 01:06:08 +02:00
xresources.nix Improve a few description fields 2017-01-15 23:42:48 +01:00
xsession.nix xsession: rename graphical session target name 2017-06-29 00:24:29 +02:00