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;