mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 21:32:27 +00:00
Add additional LUKS encrypted disk for storage
This commit is contained in:
@@ -9,10 +9,18 @@
|
|||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
boot.initrd.luks.devices.luksroot = {
|
boot.initrd.luks.devices = {
|
||||||
allowDiscards = true;
|
luksroot = {
|
||||||
device = "/dev/disk/by-uuid/570a2b97-3310-4784-9138-6e09037cea17";
|
allowDiscards = true;
|
||||||
preLVM = true;
|
device = "/dev/disk/by-uuid/570a2b97-3310-4784-9138-6e09037cea17";
|
||||||
|
preLVM = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
luksstorage = {
|
||||||
|
allowDiscards = true;
|
||||||
|
device = "/dev/disk/by-uuid/23b54f60-1eb8-4bf1-b04c-79f8537c228a";
|
||||||
|
preLVM = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
@@ -28,6 +36,11 @@
|
|||||||
swapDevices =
|
swapDevices =
|
||||||
[{ device = "/dev/disk/by-uuid/aca92a73-2941-40ca-88c4-0dd8607d232a"; }];
|
[{ device = "/dev/disk/by-uuid/aca92a73-2941-40ca-88c4-0dd8607d232a"; }];
|
||||||
|
|
||||||
|
fileSystems."/mnt/storage" = {
|
||||||
|
device = "/dev/disk/by-uuid/0f592fca-1d4e-43f7-9bf4-f1c3e19e841f";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
# high-resolution display
|
# high-resolution display
|
||||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user