add scrutiny to shadowfax
This commit is contained in:
parent
cbfd905378
commit
f12517b1a1
2 changed files with 18 additions and 0 deletions
7
nixos/hosts/shadowfax/config/disks.nix
Normal file
7
nixos/hosts/shadowfax/config/disks.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[
|
||||||
|
"nvme-Samsung_SSD_970_EVO_Plus_500GB_S58SNM0W406409E"
|
||||||
|
"nvme-SOLIDIGM_SSDPFKNU020TZ_PHEH314200DT2P0C"
|
||||||
|
"nvme-SOLIDIGM_SSDPFKNU020TZ_PHEH3142017H2P0C"
|
||||||
|
"nvme-SOLIDIGM_SSDPFKNU020TZ_PHEH314201AD2P0C"
|
||||||
|
"nvme-SOLIDIGM_SSDPFKNU020TZ_PHEH314201E72P0C"
|
||||||
|
]
|
|
@ -4,6 +4,8 @@
|
||||||
{ config, lib, inputs, ... }:
|
{ config, lib, inputs, ... }:
|
||||||
let
|
let
|
||||||
sanoidConfig = import ./config/sanoid.nix { };
|
sanoidConfig = import ./config/sanoid.nix { };
|
||||||
|
disks = import ./config/disks.nix;
|
||||||
|
smartdDevices = map (device: { inherit device; }) disks;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
@ -117,6 +119,15 @@ in
|
||||||
podman.enable = true;
|
podman.enable = true;
|
||||||
libvirt-qemu.enable = true;
|
libvirt-qemu.enable = true;
|
||||||
|
|
||||||
|
# Scrutiny
|
||||||
|
scrutiny = {
|
||||||
|
enable = true;
|
||||||
|
devices = disks;
|
||||||
|
extraCapabilities = [ "SYS_RAWIO" ];
|
||||||
|
containerVolumeLocation = "/nahar/containers/volumes/scrutiny";
|
||||||
|
port = 8585;
|
||||||
|
};
|
||||||
|
|
||||||
# Sanoid
|
# Sanoid
|
||||||
sanoid = {
|
sanoid = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue