home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fcff8bae14677a25157b5db28ef54b42b410a212
parent 92edadd34e9e0a5fb241ca0ced2ccf69dab508d7
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 13 Jul 2020 11:20:11 +0200

systems: migrate binary-cache and tarnsnap to sakhalin

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/okinawa.nix | 25-------------------------
Msystems/sakhalin.nix | 25+++++++++++++++++++++++++
2 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/systems/okinawa.nix b/systems/okinawa.nix @@ -91,32 +91,7 @@ in } ]; }; - nix-binary-cache = { - enable = true; - domain = "nix.cache.home"; - aliases = [ "cache.massimo.home" "nix.okinawa.home" ]; - }; syncthing.guiAddress = "0.0.0.0:8384"; - tarsnap = { - enable = true; - archives = { - documents = { - directories = [ "/home/vincent/desktop/documents" ]; - period = "daily"; - keyfile = "/etc/nixos/assets/tarsnap.documents.key"; - }; - org = { - directories = [ "/home/vincent/desktop/org" ]; - period = "daily"; - keyfile = "/etc/nixos/assets/tarsnap.org.key"; - }; - sites = { - directories = [ "/home/vincent/desktop/sites" ]; - period = "daily"; - keyfile = "/etc/nixos/assets/tarsnap.sites.key"; - }; - }; - }; wireguard = { enable = true; ips = ips; diff --git a/systems/sakhalin.nix b/systems/sakhalin.nix @@ -69,6 +69,26 @@ in fileSystems."/export/toshito" = { device = "/mnt/toshito"; options = [ "bind" ]; }; services = { + tarsnap = { + enable = true; + archives = { + documents = { + directories = [ "/home/vincent/desktop/documents" ]; + period = "daily"; + keyfile = "/etc/nixos/assets/tarsnap.documents.key"; + }; + org = { + directories = [ "/home/vincent/desktop/org" ]; + period = "daily"; + keyfile = "/etc/nixos/assets/tarsnap.org.key"; + }; + sites = { + directories = [ "/home/vincent/desktop/sites" ]; + period = "daily"; + keyfile = "/etc/nixos/assets/tarsnap.sites.key"; + }; + }; + }; nfs.server = { enable = true; exports = '' @@ -77,6 +97,11 @@ in /export/toshito 192.168.1.0/24(rw,fsid=2,no_subtree_check) 10.100.0.0/24(rw,fsid=2,no_subtree_check) ''; }; + nix-binary-cache = { + enable = true; + domain = "nix.cache.home"; + aliases = [ "cache.sakhalin.home" ]; + }; bind = { enable = true; forwarders = [ "8.8.8.8" "8.8.4.4" ];