From 8e4fb97154010f7db0af44b519a6d74ebbb75477 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Mon, 8 Aug 2022 22:36:31 +0200 Subject: [PATCH] enforce enabled flatpak module when audio bottles is enabled --- modules/audio.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/audio.nix b/modules/audio.nix index 688d666d..7d994971 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -30,6 +30,12 @@ in { }; config = mkIf cfg.enable { + assertions = [ + (mkIf cfg.bottles.enable { + assertion = cfgfp.enable; + message = "Cannot enable bottles without the flatpak module!"; + }) + ]; # Use builtins.concatLists instead of mkMerge as this is more safe as the type is specified, # also mkMerge doesn't work in every case as it yields a set