mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-02-04 09:10:01 +01:00
modules/rsync-pull-targets: leave TODO about assertion
This commit is contained in:
@@ -111,6 +111,16 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
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;
|
services.openssh.enable = true;
|
||||||
users.users = lib.pipe cfg.locations [
|
users.users = lib.pipe cfg.locations [
|
||||||
(lib.filterAttrs (_: value: value.enable))
|
(lib.filterAttrs (_: value: value.enable))
|
||||||
|
|||||||
Reference in New Issue
Block a user