Use lib.concatLists instead of ++ when convenient

This commit is contained in:
SebastianStork 2025-10-12 23:20:09 +02:00
parent 8807d38b57
commit 90302f4c2b
3 changed files with 10 additions and 7 deletions

View file

@ -29,9 +29,10 @@ in
};
config = lib.mkIf cfg.enable {
warnings =
lib.optional (lib.pathExists "${modulesPath}/services/misc/memos.nix") "TODO: Use memos module from stable nixpkgs"
++ lib.optional (lib.versionAtLeast lib.version "25.11") "TODO: Use memos package from stable nixpkgs";
warnings = lib.concatLists [
(lib.optional (lib.pathExists "${modulesPath}/services/misc/memos.nix") "TODO: Use memos module from stable nixpkgs")
(lib.optional (lib.versionAtLeast lib.version "25.11") "TODO: Use memos package from stable nixpkgs")
];
meta = {
domains.list = [ cfg.domain ];