1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 03:59:46 +01:00
home-manager/modules
Robin Stumm 540e90d3fa
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`.

(cherry picked from commit 89dc8c2004)
2017-07-08 00:40:58 +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 info: add module 2017-05-26 00:44:55 +02:00
services gpg-agent: use systemd socket activation 2017-06-29 23:33:28 +02:00
default.nix info: add module 2017-05-26 00:44:55 +02:00
home-environment.nix home-environment: fix home.activation.checkLinkTargets 2017-07-08 00:40:58 +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