added second disk

This commit is contained in:
twoneis 2024-05-07 21:45:42 +02:00
parent b68cb87817
commit d21880f08c

View file

@ -1,7 +1,7 @@
{
disko.devices = {
disk = {
vdb = {
vda = {
type = "disk";
device = "/dev/nvme0n1";
content = {
@ -39,15 +39,6 @@
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/nix";
};
# Subvolume for the swapfile
"/swap" = {
mountpoint = "/.swapvol";
swap = {
swapfile.size = "20M";
swapfile2.size = "20M";
swapfile2.path = "rel-path";
};
};
};
swap = {
swapfile = {
@ -59,6 +50,29 @@
};
};
};
vdb = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
# Subvolumes must set a mountpoint in order to be mounted,
# unless their parent is mounted
subvolumes = {
"/ext" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/ext";
};
};
};
};
};
};
};
};
}