Skip to content

Commit 26d16c7

Browse files
MattSturgeonGaetanLepage
authored andcommitted
modules/files: drop coercedFileType
Defining `extraFiles.*` as a string was deprecated in 24.05, and has printed a warning since 2024-07-07. We can now drop support entirely and simplify the implementation.
1 parent b52b1fb commit 26d16c7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/files.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,11 @@ let
8888
modules = [ fileTypeModule ];
8989
specialArgs.topConfig = config;
9090
};
91-
92-
# TODO: Added 2024-07-07, remove after 24.11
93-
# Before we had a fileType, we used types.str.
94-
coercedFileType = lib.nixvim.transitionType lib.types.str (text: { inherit text; }) fileType;
9591
in
9692
{
9793
options = {
9894
extraFiles = lib.mkOption {
99-
type = lib.types.attrsOf coercedFileType;
95+
type = lib.types.attrsOf fileType;
10096
description = "Extra files to add to the runtime path";
10197
default = { };
10298
example = lib.literalExpression ''

0 commit comments

Comments
 (0)