From a6cc4c6c331c86e6b1ff7316fdc076f4ca7b163b Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 7 Jul 2024 16:44:17 +0100 Subject: [PATCH] modules/files: format `files` submodule output Instead of `pkgs.writeText`, use `helpest.writeLua` to ensure the file is formatted with stylua. --- modules/top-level/files/submodule.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/top-level/files/submodule.nix b/modules/top-level/files/submodule.nix index 13095bb6..d231cf6a 100644 --- a/modules/top-level/files/submodule.nix +++ b/modules/top-level/files/submodule.nix @@ -2,7 +2,7 @@ name, config, lib, - pkgs, + helpers, ... }: { @@ -22,6 +22,6 @@ path = lib.mkDefault name; type = lib.mkDefault (if lib.hasSuffix ".vim" name then "vim" else "lua"); # No need to use mkDerivedConfig; this option is readOnly. - plugin = pkgs.writeText derivationName config.content; + plugin = helpers.writeLua derivationName config.content; }; }