From 422522da985ea88df3c536bddc38e0ee48840724 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 6 Apr 2024 18:18:33 +0200 Subject: add logitech & lindy backup to infracoll --- nixos/common.nix | 4 ++++ nixos/lindy.nix | 32 +++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/common.nix b/nixos/common.nix index a824a18..1c9dbed 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -81,6 +81,10 @@ # Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable = true; + # Enable logitech unifying reciever support + hardware.logitech.wireless.enable = true; + hardware.logitech.wireless.enableGraphical = true; + # Enable libvirt virtualisation.libvirtd.enable = true; diff --git a/nixos/lindy.nix b/nixos/lindy.nix index 121f741..e6e8e2c 100644 --- a/nixos/lindy.nix +++ b/nixos/lindy.nix @@ -117,10 +117,40 @@ Komaru UUID=caf8496f-006b-4762-bb20-506d4c7bdb51 /nix/persist/root/komaru_key # Zram zramSwap.enable = true; - # Backup + # Local backup (borg to Zonz) services.cron.enable = true; services.cron.systemCronJobs = [ "0 20 * * * root /media/Zonz/lindy/do-backup.sh" ]; + # Remote backup (restic to infracoll) + services.restic.backups."infracoll" = { + repository = "s3:http://garage.isomorphis.me:3900/restic-lx"; + environmentFile = "/nix/persist/etc/secrets/restic/infracoll/credentials"; + passwordFile = "/nix/persist/etc/secrets/restic/infracoll/password"; + paths = [ + "/nix/persist" + "/home/lx" + # "/home/lx.old" # TODO cleanup this + # /media/Zonz/Private + # /media/Zonz/Stuff + ]; + exclude = [ + "/home/lx/.cache" + "/home/lx/.cargo" + "/home/lx/.local/share/Steam" + "/home/lx/Deuxfleurs/garage/tmp" + ]; + timerConfig = { + OnCalendar = "21:30"; + Persistent = true; + }; + pruneOpts = [ + "--keep-daily 7" + "--keep-weekly 5" + "--keep-monthly 12" + "--keep-yearly 75" + ]; + }; + # Graphics specialisation = { nvidia.configuration = { -- cgit v1.2.3