commond: change warning to assertion

This commit is contained in:
Mateusz Słodkowicz 2024-03-21 23:43:36 +01:00
parent 1c58fc1a2f
commit e17d19dcfd
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 9 additions and 1 deletions

View File

@ -13,5 +13,13 @@ in
];
options.materus.materusArg = lib.mkOption { default = { }; };
config._module.args.materusArg = config.materus.materusArg // materusArg;
config.warnings = lib.mkIf (!materusCfg.materusFlake.decrypted) [ "Repository not decrypted, private configs not loaded, use crypt.sh to decrypt" ];
config.assertions = [
{
assertion = materusCfg.materusFlake.decrypted;
message = "Repository not decrypted, use crypt.sh to decrypt";
}
];
}