files: remove assertion on recursive onChange
See discussion in
https://github.com/nix-community/home-manager/pull/2031
(cherry picked from commit d2aaeac42c
)
This commit is contained in:
parent
2f997178fa
commit
913f722560
|
@ -39,17 +39,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
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:
|
lib.file.mkOutOfStoreSymlink = path:
|
||||||
let
|
let
|
||||||
pathStr = toString path;
|
pathStr = toString path;
|
||||||
|
|
|
@ -83,8 +83,8 @@ with lib;
|
||||||
<emphasis>after</emphasis> the new files have been linked
|
<emphasis>after</emphasis> the new files have been linked
|
||||||
into place.
|
into place.
|
||||||
</para><para>
|
</para><para>
|
||||||
Note, this option cannot be used when <literal>recursive</literal>
|
Note, this code is always run when <literal>recursive</literal> is
|
||||||
is enabled.
|
enabled.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue