From b4c25b511e1ce99c2b7a85eb91f1921e5431e43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 31 Jul 2024 11:27:41 +0300 Subject: [PATCH] formatting --- hosts/fwminex/configuration.nix | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index f7c899a..5bb80e2 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -107,14 +107,20 @@ in sshKeyPath = "/etc/ssh/ssh_host_ed25519_key"; dirs = builtins.concatMap - (host: [ - { - repo = "${host}:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2"; - subvolume = "/home"; - paths = [ "motiejus/annex2" ]; - backup_at = "*-*-* 02:30:01 UTC"; - } - ]) + ( + host: + let + prefix = "${host}:${config.networking.hostName}.${config.networking.domain}"; + in + [ + { + subvolume = "/home"; + repo = "${prefix}-home-motiejus-annex2"; + paths = [ "motiejus/annex2" ]; + backup_at = "*-*-* 02:30:01 UTC"; + } + ] + ) [ "zh2769@zh2769.rsync.net" "borgstor@${myData.hosts."vno3-rp3b.servers.jakst".jakstIP}"