From cc5dce785ba2d904df5416e45133e7fe0d9f602e Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:57:48 +0100 Subject: [PATCH] add new 1tb ssd --- modules/backup.nix | 22 ++++++++++++++++++++++ modules/cli-tools.nix | 1 + systems/server/hardware-configuration.nix | 5 +++++ 3 files changed, 28 insertions(+) diff --git a/modules/backup.nix b/modules/backup.nix index 4bdcd30..74070b9 100644 --- a/modules/backup.nix +++ b/modules/backup.nix @@ -33,6 +33,28 @@ pruneOpts = [ "--keep-daily 7" "--keep-weekly 3" "--keep-monthly 3" "--keep-yearly 3" ]; repository = "/mnt/2tb/restic"; }; + localbackup-1tb-ssd = { + exclude = [ + "/home/**/Cache" + "/home/**/.cache" + "/home/**/__pycache__" + "/home/**/node_modules" + "/home/**/venv" + ]; + initialize = true; + passwordFile = config.age.secrets.restic-pw.path; + paths = [ + "/home" + "/var/backup/postgresql" + "/mnt/250ssd/matrix-synapse/media_store/" + "/mnt/250ssd/nextcloud" + "/mnt/250ssd/paperless" + "/mnt/250ssd/kavita" + "/var/lib/palworld/Pal/Saved" + ]; + pruneOpts = [ "--keep-daily 7" "--keep-weekly 3" "--keep-monthly 3" "--keep-yearly 3" ]; + repository = "/mnt/1tbssd/restic"; + }; localbackup-1tb = { initialize = true; passwordFile = config.age.secrets.restic-pw.path; diff --git a/modules/cli-tools.nix b/modules/cli-tools.nix index 5403f6d..13b05ee 100644 --- a/modules/cli-tools.nix +++ b/modules/cli-tools.nix @@ -20,5 +20,6 @@ smartmontools bc xxd + tldr ]; } diff --git a/systems/server/hardware-configuration.nix b/systems/server/hardware-configuration.nix index ca47570..9824fbe 100644 --- a/systems/server/hardware-configuration.nix +++ b/systems/server/hardware-configuration.nix @@ -48,6 +48,11 @@ fsType = "ext4"; options = ["defaults" "nofail" "noatime"]; }; + fileSystems."/mnt/1tbssd" = + { device = "/dev/disk/by-uuid/801d9217-9c38-4ca8-914e-e31361603892"; + fsType = "ext4"; + options = ["defaults" "nofail" "noatime"]; + }; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's