Use disko for configuration of the disk, built the ISO with lvm, put the default to the current setup for EDI. Make sure to update after flashing.
This commit is contained in:
parent
a0966aad40
commit
e39fe5214b
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
vdb = {
|
||||
device = "/dev/disk/by-path/pci-0000:71:00.0-nvme-1";
|
||||
nvme0n1 = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-path/pci-0000:71:00.0-nvme-1";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
|
@ -19,6 +19,12 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
encryptedSwap = {
|
||||
size = "4G";
|
||||
content = {
|
||||
type = "swap";
|
||||
randomEncryption = true;
|
||||
};
|
||||
};
|
||||
luks = {
|
||||
size = "100%";
|
||||
|
@ -33,15 +39,8 @@
|
|||
};
|
||||
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
|
||||
content = {
|
||||
swap = {
|
||||
type = "swap";
|
||||
size = "4G";
|
||||
resumeDevice = true; # resume from hiberation from this device
|
||||
};
|
||||
root = {
|
||||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
size = "100%";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
../../desktop
|
||||
|
||||
#../../../disko/EDI
|
||||
../../../disko/EDI
|
||||
|
||||
# Import your generated (nixos-generate-config) hardware configuration
|
||||
./hardware-configuration.nix
|
||||
|
|
|
@ -17,25 +17,25 @@
|
|||
boot.kernelModules = ["kvm-intel"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "UUID=88cd54d3-b644-4bae-96e9-51d2db3c5628";
|
||||
fsType = "bcachefs";
|
||||
};
|
||||
# fileSystems."/" = {
|
||||
# device = "UUID=88cd54d3-b644-4bae-96e9-51d2db3c5628";
|
||||
# fsType = "bcachefs";
|
||||
# };
|
||||
|
||||
boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/91da75e7-52bc-4a50-9293-7e5e431040e0";
|
||||
#boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/91da75e7-52bc-4a50-9293-7e5e431040e0";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/01B2-909E";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0077" "dmask=0077" "defaults"];
|
||||
};
|
||||
# fileSystems."/boot" = {
|
||||
# device = "/dev/disk/by-uuid/01B2-909E";
|
||||
# fsType = "vfat";
|
||||
# options = ["fmask=0077" "dmask=0077" "defaults"];
|
||||
# };
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/dev/disk/by-path/pci-0000:71:00.0-nvme-1-part2";
|
||||
randomEncryption.enable = true;
|
||||
}
|
||||
];
|
||||
# swapDevices = [
|
||||
# {
|
||||
# device = "/dev/disk/by-path/pci-0000:71:00.0-nvme-1-part2";
|
||||
# randomEncryption.enable = true;
|
||||
# }
|
||||
# ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
Loading…
Reference in a new issue