config

NixOS config
Log | Files | Refs | README | LICENSE

commit b4c25b511e1ce99c2b7a85eb91f1921e5431e43d (tree)
parent 6be2edaac1210dd3099d9519ac0d0233c67f045a
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Wed, 31 Jul 2024 11:27:41 +0300

formatting

Diffstat:
Mhosts/fwminex/configuration.nix | 22++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)

diff --git 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}"