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:
Matt Sturgeon 2024-07-17 15:16:06 +01:00
parent c4fcbb0dcf
commit 6975ee09f5
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 6 additions and 2 deletions

View file

@ -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 {