1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

files: remove assertion on recursive onChange

See discussion in

  https://github.com/nix-community/home-manager/pull/2031
This commit is contained in:
Robert Helgesson 2021-05-30 11:54:33 +02:00
parent 07ad6a4f76
commit d2aaeac42c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 2 additions and 13 deletions

View file

@ -39,17 +39,6 @@ in
};
config = {
assertions = [(
let
conflicts = mapAttrsToList (n: v: n)
(filterAttrs (n: v: v.recursive && v.onChange != "") cfg);
in {
assertion = conflicts == [];
message = ''
Cannot use 'home.file.<name>.onChange' when 'home.file.<name>.recursive' is enabled:
${concatStringsSep ", " conflicts}'';
})];
lib.file.mkOutOfStoreSymlink = path:
let
pathStr = toString path;

View file

@ -83,8 +83,8 @@ with lib;
<emphasis>after</emphasis> the new files have been linked
into place.
</para><para>
Note, this option cannot be used when <literal>recursive</literal>
is enabled.
Note, this code is always run when <literal>recursive</literal> is
enabled.
'';
};