From 0bc56c88ad26c688670651bb3910e9febe36e647 Mon Sep 17 00:00:00 2001 From: Cottand Date: Sun, 17 Dec 2023 18:37:06 +0000 Subject: [PATCH] assert correct sourcesStore in nixos --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index c25baee..11b63f8 100644 --- a/flake.nix +++ b/flake.nix @@ -120,10 +120,12 @@ }; }; assertions = [ -# { -# assertion = cfg.configuration.blocking.sourcesStore == cfg.; -# message = "Only one of services.leng.configuration or services.leng.configurationText may be set"; -# } + { + assertion = cfg.configuration.blocking.sourcesStore == "/var/lib/leng-sources"; + message = '' + `services.leng.configuration.blocking.sourcesStore` should be set to `var/lib/leng-sources`, but it is set to ${cfg.configuration.blocking.sourcesStore}. + ''; + } ]; }; };