decommission gandalf

This commit is contained in:
Joseph Hanson 2024-12-10 20:53:27 -06:00
parent c8c5d5126f
commit 809a01820d

View file

@ -8,12 +8,11 @@
inputs, inputs,
... ...
}: }:
let # let
sanoidConfig = import ./config/sanoid.nix { }; # sanoidConfig = import ./config/sanoid.nix { };
disks = import ./config/disks.nix; # disks = import ./config/disks.nix;
smartdDevices = map (device: { inherit device; }) disks; # smartdDevices = map (device: { inherit device; }) disks;
# in
in
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
@ -122,17 +121,17 @@ in
services = { services = {
# Smart daemon for monitoring disk health. # Smart daemon for monitoring disk health.
smartd = { smartd = {
devices = smartdDevices; # devices = smartdDevices;
# Short test every day at 2:00 AM and long test every Sunday at 4:00 AM. # Short test every day at 2:00 AM and long test every Sunday at 4:00 AM.
defaults.monitored = "-a -o on -s (S/../.././02|L/../../7/04)"; defaults.monitored = "-a -o on -s (S/../.././02|L/../../7/04)";
}; };
# ZFS Exporter # ZFS Exporter
prometheus.exporters.zfs.enable = true; prometheus.exporters.zfs.enable = true;
samba = { # samba = {
enable = true; # enable = true;
settings = import ./config/samba-config.nix { }; # settings = import ./config/samba-config.nix { };
openFirewall = true; # openFirewall = true;
}; # };
}; };
# System settings and services. # System settings and services.
@ -144,14 +143,14 @@ in
"eno1" "eno1"
]; ];
# Incus # Incus
incus = { # incus = {
enable = true; # enable = true;
preseed = import ./config/incus-preseed.nix { }; # preseed = import ./config/incus-preseed.nix { };
webuiport = 8445; # webuiport = 8445;
}; # };
# ZFS # ZFS
zfs.enable = true; zfs.enable = true;
zfs.mountPoolsAtBoot = [ "eru" ]; # zfs.mountPoolsAtBoot = [ "eru" ];
# NFS # NFS
nfs.enable = true; nfs.enable = true;
# Restic # Restic
@ -174,20 +173,20 @@ in
privateKeyPath = config.sops.secrets."syncthing/privateKey".path; privateKeyPath = config.sops.secrets."syncthing/privateKey".path;
}; };
# Scrutiny # # Scrutiny
scrutiny = { # scrutiny = {
enable = true; # enable = true;
devices = disks; # devices = disks;
extraCapabilities = [ "SYS_RAWIO" ]; # extraCapabilities = [ "SYS_RAWIO" ];
containerVolumeLocation = "/eru/containers/volumes/scrutiny"; # containerVolumeLocation = "/eru/containers/volumes/scrutiny";
port = 8585; # port = 8585;
}; # };
# Sanoid # Sanoid
sanoid = { # sanoid = {
enable = true; # enable = true;
inherit (sanoidConfig.outputs) templates datasets; # inherit (sanoidConfig.outputs) templates datasets;
}; # };
}; };
}; };
} }