I should commit more frequently 🫣
This commit is contained in:
parent
d7e82621c8
commit
f1483e45f0
70 changed files with 2344 additions and 599 deletions
|
@ -12,10 +12,16 @@
|
|||
"ssh"
|
||||
"ccr"
|
||||
"wireguard-client"
|
||||
"minidlna"
|
||||
# "minidlna"
|
||||
"mediatomb"
|
||||
"transmission"
|
||||
"hercules-ci"
|
||||
"bubbleupnp"
|
||||
# "bubbleupnp"
|
||||
# "nextcloud"
|
||||
"home-assistant"
|
||||
# "immich"
|
||||
"adguard-home"
|
||||
# "mount-hetzner-box"
|
||||
]
|
||||
++ [
|
||||
./disko.nix
|
||||
|
@ -55,6 +61,12 @@
|
|||
# in ["credentials=${credentials},x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"];
|
||||
# };
|
||||
|
||||
fileSystems."/mnt/hd" = {
|
||||
device = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550-part1";
|
||||
fsType = "ext4";
|
||||
options = ["nofail"];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# kodi-rock5b
|
||||
cifs-utils
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
let
|
||||
emmc = "/dev/mmcblk0";
|
||||
hd1 = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550";
|
||||
hd2 = "/dev/disk/by-id/ata-WDC_WD10EADX-22TDHB0_WD-WCAV5V359530";
|
||||
# hd1 = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550";
|
||||
# hd2 = "/dev/disk/by-id/ata-WDC_WD10EADX-22TDHB0_WD-WCAV5V359530";
|
||||
hd = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550-part1";
|
||||
# old_hd = "/dev/disk/by-id/ata-WDC_WD5000AAKX-08U6AA0_WD-WCC2E5TR40FU";
|
||||
in {
|
||||
disko.devices = {
|
||||
|
@ -33,67 +34,87 @@ in {
|
|||
];
|
||||
};
|
||||
};
|
||||
hd1 = {
|
||||
type = "disk";
|
||||
device = hd1;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "primary";
|
||||
start = "0";
|
||||
end = "100%";
|
||||
content = {
|
||||
type = "mdraid";
|
||||
name = "raid1";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
hd2 = {
|
||||
type = "disk";
|
||||
device = hd2;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "primary";
|
||||
start = "0";
|
||||
end = "100%";
|
||||
content = {
|
||||
type = "mdraid";
|
||||
name = "raid1";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
# hd = {
|
||||
# type = "disk";
|
||||
# device = hd;
|
||||
# content = {
|
||||
# type = "table";
|
||||
# format = "gpt";
|
||||
# partitions = [
|
||||
# {
|
||||
# name = "hd";
|
||||
# start = "0%";
|
||||
# end = "100%";
|
||||
# content = {
|
||||
# type = "filesystem";
|
||||
# format = "ext4";
|
||||
# mountpoint = "/mnt/hd";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
# hd1 = {
|
||||
# type = "disk";
|
||||
# device = hd1;
|
||||
# content = {
|
||||
# type = "table";
|
||||
# format = "gpt";
|
||||
# partitions = [
|
||||
# {
|
||||
# name = "primary";
|
||||
# start = "0";
|
||||
# end = "100%";
|
||||
# content = {
|
||||
# type = "mdraid";
|
||||
# name = "raid1";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
# hd2 = {
|
||||
# type = "disk";
|
||||
# device = hd2;
|
||||
# content = {
|
||||
# type = "table";
|
||||
# format = "gpt";
|
||||
# partitions = [
|
||||
# {
|
||||
# name = "primary";
|
||||
# start = "0";
|
||||
# end = "100%";
|
||||
# content = {
|
||||
# type = "mdraid";
|
||||
# name = "raid1";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
|
||||
mdadm = {
|
||||
raid1 = {
|
||||
type = "mdadm";
|
||||
level = 1;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "primary";
|
||||
start = "0";
|
||||
end = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/mnt/raid";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
# mdadm = {
|
||||
# raid1 = {
|
||||
# type = "mdadm";
|
||||
# level = 1;
|
||||
# content = {
|
||||
# type = "table";
|
||||
# format = "gpt";
|
||||
# partitions = [
|
||||
# {
|
||||
# name = "primary";
|
||||
# start = "0";
|
||||
# end = "100%";
|
||||
# content = {
|
||||
# type = "filesystem";
|
||||
# format = "ext4";
|
||||
# mountpoint = "/mnt/raid";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue