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 0399839
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/release-notes/rl-1903.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The 19.03 release branch became the stable branch in April, 2019.

[[sec-release-19.03-highlights]]
=== Highlights
:opt-home-file-source: opt-home.file._name__.source
:opt-home-file-source: opt-home.file._name_.source

This release has the following notable changes:

Expand Down
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 0399839

Please sign in to comment.