diff --git a/modules/misc/backup.nix b/modules/misc/backup.nix index 05b44c4..2634353 100644 --- a/modules/misc/backup.nix +++ b/modules/misc/backup.nix @@ -72,14 +72,14 @@ in mkIf cfg.enable { # pruneOpts = [ "--keep-daily 7" "--keep-weekly 3" "--keep-monthly 3" "--keep-yearly 3" ]; # repository = "/mnt/2tb/restic"; #}; - #localbackup-1tb-ssd = { - # initialize = true; - # passwordFile = config.age.secrets.restic-pw.path; - # exclude = cfg.excludePaths; - # paths = cfg.large; - # pruneOpts = [ "--keep-daily 7" "--keep-weekly 3" "--keep-monthly 3" "--keep-yearly 3" ]; - # repository = "/mnt/1tbssd/restic"; - #}; + localbackup-1tb-ssd = { + initialize = true; + passwordFile = config.age.secrets.restic-pw.path; + exclude = cfg.excludePaths; + paths = cfg.large; + pruneOpts = [ "--keep-daily 7" "--keep-weekly 3" "--keep-monthly 3" "--keep-yearly 3" ]; + repository = "/1tbssd/restic"; + }; #localbackup-1tb = { # initialize = true; # passwordFile = config.age.secrets.restic-pw.path; diff --git a/systems/mini-pc/hardware-configuration.nix b/systems/mini-pc/hardware-configuration.nix index b844bc1..e7f0f35 100644 --- a/systems/mini-pc/hardware-configuration.nix +++ b/systems/mini-pc/hardware-configuration.nix @@ -33,6 +33,11 @@ fsType = "btrfs"; options = [ "compress=zstd" "noatime" ]; }; + fileSystems."/1tbssd" = + { device = "/dev/disk/by-uuid/801d9217-9c38-4ca8-914e-e31361603892"; + fsType = "ext4"; + options = ["defaults" "nofail" "noatime"]; + }; swapDevices = [ { device = "/dev/disk/by-uuid/af6bf3d5-07a4-4139-9464-ffc1c4e23549"; }