add vms backup

This commit is contained in:
Christoph Cullmann 2023-09-17 00:23:47 +02:00
parent f90169dc78
commit b0c5f1e67e
2 changed files with 42 additions and 0 deletions

View file

@ -24,8 +24,12 @@
fsType = "vfat";
};
# system
boot.initrd.luks.devices."crypt-system".device = "/dev/disk/by-uuid/22c208e6-579b-4d34-8f83-83aa4a7ab1c3";
# vms
boot.initrd.luks.devices."crypt-vms".device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
fileSystems."/nix" =
{ device = "/dev/mapper/crypt-system";
fsType = "btrfs";
@ -56,6 +60,14 @@
options = [ "bind" ];
};
fileSystems."/home/cullmann/vms" =
{
depends = [ "/home" ];
device = "/dev/mapper/crypt-vms";
fsType = "btrfs";
options = [ "noatime" "nodiratime" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";