mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-25 22:35:03 +01:00
yodaNas LUKS backup drive
This commit is contained in:
parent
28816c5868
commit
51f9b93704
@ -68,5 +68,6 @@ in
|
|||||||
# TODO: For "/" this cfg resides in base.nix
|
# TODO: For "/" this cfg resides in base.nix
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/mnt/data".options = [ "compress=zstd" "noatime" "commit=120" ];
|
"/mnt/data".options = [ "compress=zstd" "noatime" "commit=120" ];
|
||||||
|
"/mnt/backup".options = [ "compress=zstd" "noatime" "commit=120" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -21,23 +21,17 @@
|
|||||||
|
|
||||||
boot.initrd.luks.devices."luks-3d974bd0-f373-469b-8e9c-2d5516e9f0f5".device = "/dev/disk/by-uuid/3d974bd0-f373-469b-8e9c-2d5516e9f0f5";
|
boot.initrd.luks.devices."luks-3d974bd0-f373-469b-8e9c-2d5516e9f0f5".device = "/dev/disk/by-uuid/3d974bd0-f373-469b-8e9c-2d5516e9f0f5";
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/072E-897D";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
# fileSystems."/var/lib/docker/btrfs" =
|
|
||||||
# { device = "/@/var/lib/docker/btrfs";
|
|
||||||
# fsType = "none";
|
|
||||||
# options = [ "bind" ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
fileSystems."/swap" =
|
fileSystems."/swap" =
|
||||||
{ device = "/dev/disk/by-uuid/b02e7bc6-62e0-46b5-8d5f-869b464c4491";
|
{ device = "/dev/disk/by-uuid/b02e7bc6-62e0-46b5-8d5f-869b464c4491";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=@swap" ];
|
options = [ "subvol=@swap" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/072E-897D";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/data" =
|
fileSystems."/mnt/data" =
|
||||||
{ device = "/dev/disk/by-uuid/c385a436-0288-486f-a2b9-c64c2db667e7";
|
{ device = "/dev/disk/by-uuid/c385a436-0288-486f-a2b9-c64c2db667e7";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
@ -45,6 +39,20 @@
|
|||||||
|
|
||||||
boot.initrd.luks.devices."12tb1".device = "/dev/disk/by-uuid/68c349e8-5118-4773-9fd5-5dbad9acee4e";
|
boot.initrd.luks.devices."12tb1".device = "/dev/disk/by-uuid/68c349e8-5118-4773-9fd5-5dbad9acee4e";
|
||||||
|
|
||||||
|
# fileSystems."/var/lib/docker/btrfs" =
|
||||||
|
# { device = "/swap/@/var/lib/docker/btrfs";
|
||||||
|
# fsType = "none";
|
||||||
|
# options = [ "bind" ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
fileSystems."/mnt/backup" =
|
||||||
|
{ device = "/dev/disk/by-uuid/a454430b-dee3-4b6b-8325-f7bdb9435ed1";
|
||||||
|
fsType = "btrfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."3tb1".device = "/dev/disk/by-uuid/20d86155-30d4-404c-95e8-c701cfb16ca5";
|
||||||
|
boot.initrd.luks.devices."3tb2".device = "/dev/disk/by-uuid/4651c3f1-e4b8-45aa-a823-df762530a307";
|
||||||
|
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
swapDevices = [ { device = "/swap/swapfile"; } ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
Loading…
Reference in New Issue
Block a user