aboutsummaryrefslogtreecommitdiff
path: root/nixos/configurations/ridcully.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-10-17 15:37:56 +0200
committerKarel Kočí <cynerd@email.cz>2024-10-17 15:37:56 +0200
commit846e847fee79cc54b0ad5284020f46ecd79ded21 (patch)
tree2ed8067ce13186b52d3f5ab22e0377ad079b0376 /nixos/configurations/ridcully.nix
parent0662c2dc1955b07f64f641edecfb2278e10dd3f1 (diff)
downloadnixos-personal-846e847fee79cc54b0ad5284020f46ecd79ded21.tar.gz
nixos-personal-846e847fee79cc54b0ad5284020f46ecd79ded21.tar.bz2
nixos-personal-846e847fee79cc54b0ad5284020f46ecd79ded21.zip
nixos/backup: add backup configuration
Diffstat (limited to 'nixos/configurations/ridcully.nix')
-rw-r--r--nixos/configurations/ridcully.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/configurations/ridcully.nix b/nixos/configurations/ridcully.nix
index 2be1a7a..ff3b5a0 100644
--- a/nixos/configurations/ridcully.nix
+++ b/nixos/configurations/ridcully.nix
@@ -26,6 +26,7 @@ in {
cynerd.autounlock = {
"encroot" = "/dev/disk/by-uuid/bc7d2ba4-6e04-4c49-b40c-3aecd1a86c71";
"enchdd" = "/dev/disk/by-uuid/7fee3cda-efa0-47cd-8832-fdead9a7e6db";
+ "encback" = "/dev/disk/by-uuid/b426cbe7-fba2-473b-90f9-9ebe3e34b76e";
};
fileSystems = {
"/" = {
@@ -48,6 +49,11 @@ in {
fsType = "btrfs";
options = ["compress=lzo" "subvol=@home"];
};
+ "/back" = {
+ device = "/dev/mapper/encback";
+ fsType = "btrfs";
+ options = ["compress=lzo"];
+ };
};
services.btrfs.autoScrub = {
enable = true;