yodaNas LUKS data drive

This commit is contained in:
Daniel Langbein 2023-09-27 11:08:46 +02:00
parent c602a9a622
commit 0914482a61
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 17 additions and 0 deletions

View File

@ -64,4 +64,9 @@ in
boot.kernelParams = [];
boot.kernelPackages = pkgs.linuxPackages;
# TODO: For "/" this cfg resides in base.nix
fileSystems = {
"/mnt/data".options = [ "compress=zstd" "noatime" "commit=120" ];
};
}

View File

@ -38,6 +38,13 @@
options = [ "subvol=@swap" ];
};
fileSystems."/mnt/data" =
{ device = "/dev/disk/by-uuid/c385a436-0288-486f-a2b9-c64c2db667e7";
fsType = "btrfs";
};
boot.initrd.luks.devices."12tb1".device = "/dev/disk/by-uuid/68c349e8-5118-4773-9fd5-5dbad9acee4e";
swapDevices = [ { device = "/swap/swapfile"; } ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View File

@ -63,4 +63,9 @@ in
boot.kernelParams = [];
boot.kernelPackages = pkgs.linuxPackages_latest;
# TODO: For "/" this cfg resides in base.nix
fileSystems = {
"/mnt/512gb".options = [ "compress=zstd" "noatime" "commit=120" ];
};
}