feat: offline backup drives mounted on capibara
parent
943a4f5691
commit
388a657a22
28
capibara.nix
28
capibara.nix
|
@ -68,6 +68,34 @@ in {
|
|||
options = [ "subvol=vfs_share" "compress=zstd" ];
|
||||
};
|
||||
|
||||
"/mnt/backups/0" = {
|
||||
device = "/dev/mapper/backups0";
|
||||
fsType = "btrfs";
|
||||
options = [ "noauto" "subvolid=5" "compress=zstd" ];
|
||||
};
|
||||
|
||||
"/mnt/backups/1" = {
|
||||
device = "/dev/mapper/backups1";
|
||||
fsType = "btrfs";
|
||||
options = [ "noauto" "subvolid=5" "compress=zstd" ];
|
||||
};
|
||||
|
||||
"/mnt/backups/2" = {
|
||||
device = "/dev/mapper/backups2";
|
||||
fsType = "btrfs";
|
||||
options = [ "noauto" "subvolid=5" "compress=zstd" ];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
crypttab = {
|
||||
text = ''
|
||||
backups0 UUID="e45232d5-f46f-46f3-a150-be26374b3357" /etc/luks-keys/backups.bin noauto
|
||||
backups1 UUID="5b3da928-4862-4451-89cd-5bd6a95466d0" /etc/luks-keys/backups.bin noauto
|
||||
backups2 UUID="cbfa9cba-dee2-4d0b-8cde-2f1d1849b22c" /etc/luks-keys/backups.bin noauto
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
|
|
Loading…
Reference in New Issue