From 376b9e3199a982c6c97a09f90b275775b4b020dc Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 12 Feb 2024 18:22:39 +0100 Subject: [PATCH] Fixed warning --- satnogs-client-docker-module.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/satnogs-client-docker-module.nix b/satnogs-client-docker-module.nix index 2c54f0e..921633c 100644 --- a/satnogs-client-docker-module.nix +++ b/satnogs-client-docker-module.nix @@ -118,11 +118,12 @@ in }; config = mkIf cfg.enable { - warnings = [ - mkIf - (cfg.satnogs-api-token != "") - "It is not recommended to use some form of secret management e.g. agenix to store your token." - ]; + warnings = + if (cfg.satnogs-api-token != "") then + [ + "It is not recommended to use some form of secret management e.g. agenix to store your token." + ] + else [ ]; virtualisation.docker.enable = true;