Files
nixos-setup/hosts/hl-minipc2.nix
T
2024-08-04 16:53:25 -04:00

35 lines
921 B
Nix

{ user }:
{ pkgs, lib, config, ... }: {
imports = [ ./hl-minipc2.hardware-configuration.nix ];
# firmware updater
services.fwupd.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
homelab.nix.remote-builder.enable = true;
# Special udev rule for google's coral tpu
homelab.udevrules.coraltpu.enable = true;
# Containers
virtualisation.oci-containers = {
containers = {
scrypted = {
autoStart = true;
image = "ghcr.io/koush/scrypted";
extraOptions = [ "--network=host" ];
volumes = [
"/var/run/dbus:/var/run/dbus"
"/var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket"
"/opt/homelab/scrypted/db:/server/volume"
"/mnt/EightTerra/NVR:/nvr"
];
environment = {
SCRYPTED_NVR_VOLUME = "/nvr";
};
};
};
};
}