From e17d19dcfd5db5ade8e30dd624f17da5639afba1 Mon Sep 17 00:00:00 2001 From: materus Date: Thu, 21 Mar 2024 23:43:36 +0100 Subject: [PATCH] commond: change warning to assertion --- configurations/profile/common/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configurations/profile/common/default.nix b/configurations/profile/common/default.nix index b5bf5f4..551e158 100644 --- a/configurations/profile/common/default.nix +++ b/configurations/profile/common/default.nix @@ -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"; + } + ]; + + + }