clanTest: throw when usage of 'self' is triggered

That means we rely on a certain structure of the user flake
these assumptions cannot be made. Their flake can have any shape and is not controlled by us
This commit is contained in:
Johannes Kirschbauer
2025-10-24 14:10:17 +02:00
parent 3fec5aa5b3
commit e55a3b4fc6

View File

@@ -137,6 +137,12 @@ in
default = { };
type = types.submoduleWith {
specialArgs = {
self = throw ''
'self' is banned in the use of clan.services
Use 'exports' instead: https://docs.clan.lol/reference/options/clan_service/#exports
---
If you really need to used 'self' here, that makes the module less portable
'';
inherit (config.clanSettings)
clan-core
nixpkgs