Rename rock5b to sisko

This commit is contained in:
Andrea Ciceri 2023-12-12 13:12:10 +01:00
parent 55835d1367
commit adaa788a94
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
24 changed files with 249 additions and 319 deletions

75
hosts/sisko/default.nix Normal file
View file

@ -0,0 +1,75 @@
{
fleetModules,
pkgs,
...
}: {
imports =
fleetModules [
"common"
"ssh"
"ccr"
"wireguard-client"
# "minidlna"
"mediatomb"
"transmission"
"hercules-ci"
# "bubbleupnp"
# "nextcloud"
"home-assistant"
# "immich"
# "adguard-home"
# "mount-hetzner-box"
"cloudflare-dyndns"
"rock5b-proxy"
"invidious"
"searx"
"rock5b-samba"
]
++ [
./disko.nix
];
ccr.enable = true;
services.rock5b-fan-control.enable = true;
nixpkgs.hostPlatform = "aarch64-linux";
swapDevices = [];
boot.loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
# fileSystems."/mnt/film" = {
# device = "//ccr.ydns.eu/film";
# fsType = "cifs";
# options = let
# credentials = pkgs.writeText "credentials" ''
# username=guest
# password=
# '';
# in ["credentials=${credentials},x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"];
# };
# fileSystems."/mnt/archivio" = {
# device = "//ccr.ydns.eu/archivio";
# fsType = "cifs";
# options = let
# credentials = pkgs.writeText "credentials" ''
# username=guest
# password=
# '';
# 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; [
cifs-utils
];
}

120
hosts/sisko/disko.nix Normal file
View file

@ -0,0 +1,120 @@
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";
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 = {
disk = {
emmc = {
type = "disk";
device = emmc;
content = {
type = "table";
format = "gpt";
partitions = [
{
start = "32.8kB";
end = "12.6MB";
name = "uboot";
bootable = true;
}
{
name = "NIXOS_ROOTFS";
start = "13.6MB";
end = "100%";
flags = ["legacy_boot"];
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
# 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";
# };
# }
# ];
# };
# };
# };
};
}