Fixed warning

This commit is contained in:
Sebastian 2024-02-12 18:22:39 +01:00
parent c3fb88e4ce
commit 376b9e3199
1 changed files with 6 additions and 5 deletions

View File

@ -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;