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, ... }:
|
||||
let
|
||||
sanoidConfig = import ./config/sanoid.nix { };
|
||||
disks = import ./config/disks.nix;
|
||||
smartdDevices = map (device: { inherit device; }) disks;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
|
@ -117,6 +119,15 @@ in
|
|||
podman.enable = true;
|
||||
libvirt-qemu.enable = true;
|
||||
|
||||
# Scrutiny
|
||||
scrutiny = {
|
||||
enable = true;
|
||||
devices = disks;
|
||||
extraCapabilities = [ "SYS_RAWIO" ];
|
||||
containerVolumeLocation = "/nahar/containers/volumes/scrutiny";
|
||||
port = 8585;
|
||||
};
|
||||
|
||||
# Sanoid
|
||||
sanoid = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue