summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-04-06 18:18:33 +0200
committerAlex Auvolat <alex@adnab.me>2024-04-06 18:18:33 +0200
commit422522da985ea88df3c536bddc38e0ee48840724 (patch)
treeafb9d71b33487c59cab7aec2da0d2c37af14c242
parent0f19186f955ff1c8e6421353770877fcfc4cef28 (diff)
downloaduser-config-422522da985ea88df3c536bddc38e0ee48840724.tar.gz
user-config-422522da985ea88df3c536bddc38e0ee48840724.zip
add logitech & lindy backup to infracoll
-rw-r--r--nixos/common.nix4
-rw-r--r--nixos/lindy.nix32
2 files changed, 35 insertions, 1 deletions
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 = {