feat: migrate node

This commit is contained in:
tux
2025-11-04 15:00:36 +05:30
parent 7b25ac4f30
commit 50549a7ab3
4 changed files with 69 additions and 51 deletions

View File

@@ -1,7 +1,6 @@
{
inputs,
username,
lib,
...
}: {
imports = [
@@ -10,6 +9,7 @@
(import ./disko.nix {
device = "/dev/nvme0n1";
device2 = "/dev/nvme1n1";
device3 = "/dev/sda";
})
./hardware.nix

View File

@@ -1,6 +1,7 @@
{
device ? throw "Set this to the disk device, e.g. /dev/nvme0n1",
device2 ? throw "Set this to the disk device2, e.g. /dev/nvme1n1",
device3 ? throw "Set this to the disk device3, e.g. /dev/nvme1n1",
...
}: {
disko.devices = {
@@ -45,6 +46,23 @@
};
};
};
hdd = {
type = "disk";
device = "${device3}";
content = {
type = "gpt";
partitions = {
data = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/mnt/hdd";
};
};
};
};
};
};
mdadm = {
raid0 = {