add disk
Lint / lint (push) Failing after 2m9s Details
Plex Update / update (push) Successful in 2m27s Details

reboot
Vivian 2024-01-02 10:22:52 +01:00
parent f409d9849c
commit 31ba716b2e
4 changed files with 31 additions and 25 deletions

View File

@ -24,8 +24,7 @@
parityFiles =
[
"/mnt/parity1/snapraid.parity"
"/mnt/parity2/snapraid.parity-2"
"/mnt/parity3/snapraid.parity-3"
"/mnt/parity2/snapraid.parity"
];
dataDisks = {
d1 = "/mnt/disk1";
@ -34,6 +33,7 @@
d4 = "/mnt/disk4";
d5 = "/mnt/disk5";
d6 = "/mnt/disk6";
d7 = "/mnt/disk7";
};
contentFiles = [
"/var/lib/snapraid/snapraid.content"
@ -52,7 +52,6 @@
"/torrents/"
"/exclusion-zone/"
"/roms/"
"/roms/"
];
};
};

View File

@ -1,6 +1,10 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [ mergerfs mergerfs-tools smartmontools ];
environment.systemPackages = with pkgs; [
mergerfs
mergerfs-tools
smartmontools
];
fileSystems = {
"/mnt/disk1" = {
fsType = "ext4";
@ -32,17 +36,17 @@
device = "/dev/disk/by-uuid/63381321-fe00-4838-8668-4d1decc94296";
};
"/mnt/disk7" = {
fsType = "ext4";
device = "/dev/disk/by-uuid/6c568887-9d2e-45ce-ab85-4c48cca2226a";
};
"/mnt/parity1" = {
fsType = "ext4";
device = "/dev/disk/by-partuuid/7c9b88ed-b8f8-40c9-bbc3-b75d30e04e01";
};
"/mnt/parity2" = {
fsType = "ext4";
device = "/dev/disk/by-uuid/6c568887-9d2e-45ce-ab85-4c48cca2226a";
};
"/mnt/parity3" = {
fsType = "ext4";
device = "/dev/disk/by-partuuid/5d2d7e3e-3730-4d9b-8759-dc14396f3357";
};

View File

@ -34,11 +34,14 @@ in
networking.firewall.allowedUDPPorts = [ 67 ];
# services.prometheus.exporters.kea = {
# enable = true;
# openFirewall = true;
# controlSocketPaths = [ "/run/kea/kea-dhcp4.socket" ];
# };
services.prometheus.exporters.kea = {
enable = false;
openFirewall = true;
user = "kea";
controlSocketPaths = [ "/tmp/kea-dhcp4.socket" ];
};
# To make sure the control socket is accesible
services.kea.dhcp4 = {
enable = true;
@ -50,10 +53,10 @@ in
interfaces-config.interfaces = [ "eth0" ];
# control-socket = {
# socket-type = "unix";
# socket-name = "/run/kea/kea-dhcp4.socket";
# };
control-socket = {
socket-type = "unix";
socket-name = "/tmp/kea-dhcp4.socket";
};
# failed to initialize Kea server: configuration error using file '/etc/kea/dhcp4-server.conf': cannot create socket lockfile, /run/kea/kea-dhcp4.socket.lock, : No such file or directory
lease-database = {

View File

@ -38,13 +38,13 @@ in {
scrape_timeout = "30s";
};
scrape_configs = [
{
job_name = "kea";
static_configs = [{
targets = [ "dhcp.olympus:9547" ];
labels.app = "dhcp";
}];
}
# {
# job_name = "kea";
# static_configs = [{
# targets = [ "dhcp.olympus:9547" ];
# labels.app = "dhcp";
# }];
# }
{
job_name = "nginx";
static_configs = [{