diff --git a/modules/output.nix b/modules/output.nix index 0beb31d4..112ee18e 100644 --- a/modules/output.nix +++ b/modules/output.nix @@ -80,7 +80,12 @@ in "lua" ]; default = "lua"; - description = "Whether the generated file is a vim or a lua file"; + description = '' + Whether the generated file is a vim or a lua file + + Read-only outside of `files` submodules. + ''; + readOnly = config.isTopLevel; }; path = mkOption { diff --git a/modules/top-level/output.nix b/modules/top-level/output.nix index 13998071..eca831aa 100644 --- a/modules/top-level/output.nix +++ b/modules/top-level/output.nix @@ -274,7 +274,6 @@ in ); in { - type = lib.mkForce "lua"; finalPackage = wrappedNeovim; initPath = "${init}";