From b7708cd880764f45c2de1bbbe1582bf88c2fca60 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sat, 25 Jan 2020 09:07:20 +1300 Subject: [PATCH] mobi: add some more configuration which was missing --- configs/mobi/configuration.nix | 1 + configs/mobi/restic.nix | 7 +++++++ system/all/sshd-known-hosts-private.nix | 8 ++++++++ system/desktop/restic.nix | 7 ++++--- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 configs/mobi/restic.nix diff --git a/configs/mobi/configuration.nix b/configs/mobi/configuration.nix index 2572445..ea38295 100644 --- a/configs/mobi/configuration.nix +++ b/configs/mobi/configuration.nix @@ -5,6 +5,7 @@ ./hardware-configuration.nix + ./restic.nix ./tinc.nix ]; diff --git a/configs/mobi/restic.nix b/configs/mobi/restic.nix new file mode 100644 index 0000000..dd2c9c4 --- /dev/null +++ b/configs/mobi/restic.nix @@ -0,0 +1,7 @@ +{ + backup.services.restic = { + "on-porani.private".enable = false; + "on-workhorse.private".enable = false; + "on-workout.private".enable = false; + }; +} diff --git a/system/all/sshd-known-hosts-private.nix b/system/all/sshd-known-hosts-private.nix index 555a2e9..e022e48 100644 --- a/system/all/sshd-known-hosts-private.nix +++ b/system/all/sshd-known-hosts-private.nix @@ -56,6 +56,14 @@ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPlva+Vdj8WmQPlbQLN3qicMz5AAsyTzK53BincxtAz"; }; + "mobi.private" = { + hostNames = [ + "mobi.private" + config.module.cluster.services.tinc.private.hosts.mobi.tincIp + ]; + publicKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGhBtcipW9rV6hHS2hv5tl5hd8vW8dnuFfFwnAs2u0kS"; + }; "cracksucht.de" = { hostNames = [ "cracksucht.de" ]; publicKey = diff --git a/system/desktop/restic.nix b/system/desktop/restic.nix index 5cfc685..a40d65a 100644 --- a/system/desktop/restic.nix +++ b/system/desktop/restic.nix @@ -1,9 +1,10 @@ +{ lib, ... }: { backup.services.restic = { - "on-porani.private".enable = true; - "on-workhorse.private".enable = true; - "on-workout.private".enable = true; + "on-porani.private".enable = lib.mkDefault true; + "on-workhorse.private".enable = lib.mkDefault true; + "on-workout.private".enable = lib.mkDefault true; }; backup.all.restic.dirs = [ "/home/palo/.password-store" ];