mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
modules/outputs: make type
readOnly at the top-level
Instead of relying on `lib.mkForce` we can enforce this more strictly by setting the option "readOnly".
This commit is contained in:
parent
c4fcbb0dcf
commit
6975ee09f5
2 changed files with 6 additions and 2 deletions
|
@ -80,7 +80,12 @@ in
|
||||||
"lua"
|
"lua"
|
||||||
];
|
];
|
||||||
default = "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 {
|
path = mkOption {
|
||||||
|
|
|
@ -274,7 +274,6 @@ in
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
type = lib.mkForce "lua";
|
|
||||||
finalPackage = wrappedNeovim;
|
finalPackage = wrappedNeovim;
|
||||||
initPath = "${init}";
|
initPath = "${init}";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue