From 5877ef60b151be66b6fd414dc57aaf8d4aa4949a Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 27 Jan 2026 00:27:00 +0900 Subject: [PATCH] modules/rsync-pull-targets: leave TODO about assertion --- modules/rsync-pull-targets.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/rsync-pull-targets.nix b/modules/rsync-pull-targets.nix index 016694e..14f9a7c 100644 --- a/modules/rsync-pull-targets.nix +++ b/modules/rsync-pull-targets.nix @@ -111,6 +111,16 @@ in }; config = lib.mkIf cfg.enable { + # assertions = lib.pipe cfg.locations [ + # (lib.filterAttrs (_: value: value.enable)) + # TODO: assert that there are no duplicate (user, publicKey) pairs. + # if there are then ssh won't know which command to provide and might provide a random one, not sure. + # (lib.mapAttrsToList (_: { user, location, publicKey, ... }: { + # assertion = + # message = ""; + # }) + # ]; + services.openssh.enable = true; users.users = lib.pipe cfg.locations [ (lib.filterAttrs (_: value: value.enable))