From 26d16c726da1cf50f219478bee74d4e7c0b911d5 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Wed, 3 Dec 2025 07:17:59 +0000 Subject: [PATCH] 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. --- modules/files.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/files.nix b/modules/files.nix index cc7b8c0b..d4866a99 100644 --- a/modules/files.nix +++ b/modules/files.nix @@ -88,15 +88,11 @@ let modules = [ fileTypeModule ]; specialArgs.topConfig = config; }; - - # TODO: Added 2024-07-07, remove after 24.11 - # Before we had a fileType, we used types.str. - coercedFileType = lib.nixvim.transitionType lib.types.str (text: { inherit text; }) fileType; in { options = { extraFiles = lib.mkOption { - type = lib.types.attrsOf coercedFileType; + type = lib.types.attrsOf fileType; description = "Extra files to add to the runtime path"; default = { }; example = lib.literalExpression ''