Skip to content

Commit

Permalink
lib/file-type: remove types.loaOf
Browse files Browse the repository at this point in the history
loaOf has been deprecated for a long time and is now in the process of
removal (see NixOS/nixpkgs#96042). Thus, we
remove it here, too.
  • Loading branch information
cole-h committed Sep 2, 2020
1 parent 4b702bf commit 44a55a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/lib/file-type.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with lib;
# Arguments:
# - basePathDesc docbook compatible description of the base path
# - basePath the file base path
fileType = basePathDesc: basePath: types.loaOf (types.submodule (
fileType = basePathDesc: basePath: types.attrsOf (types.submodule (
{ name, config, ... }: {
options = {
target = mkOption {
Expand All @@ -32,7 +32,7 @@ with lib;
type = types.nullOr types.lines;
description = ''
Text of the file. If this option is null then
<link linkend="opt-home.file._name__.source">home.file.&lt;name?&gt;.source</link>
<link linkend="opt-home.file._name_.source">home.file.&lt;name?&gt;.source</link>
must be set.
'';
};
Expand All @@ -41,7 +41,7 @@ with lib;
type = types.path;
description = ''
Path of the source file or directory. If
<link linkend="opt-home.file._name__.text">home.file.&lt;name?&gt;.text</link>
<link linkend="opt-home.file._name_.text">home.file.&lt;name?&gt;.text</link>
is non-null then this option will automatically point to a file
containing that text.
'';
Expand Down

0 comments on commit 44a55a6

Please sign in to comment.