Files
nixos-setup/hosts/hl-minipc1.nix
T

41 lines
1.0 KiB
Nix

{ user }:
{ pkgs, lib, config, ... }: {
imports = [ ./hl-minipc1.hardware-configuration.nix ];
# Nix Stores
services.nix-serve = {
enable = true;
secretKeyFile = "/var/keys/cache-priv-key.pem";
};
# firmware updater
services.fwupd.enable = true;
homelab.nix.remote-builder.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Data
fileSystems."/mnt/Data" = {
device = "/dev/disk/by-uuid/ee4a60a8-b0d1-4f5c-a554-1d1d84c89e34";
fsType = "ext4";
options = [ "nofail" ];
};
# Services
homelab.services.audiobookshelf = {
enable = true;
host = "0.0.0.0";
openFirewall = true;
port = 8000;
configDir = "/mnt/Data/audiobookshelf/config";
metadtaDir = "/mnt/Data/audiobookshelf/metadata";
};
services.dockerRegistry = {
enable = true;
storagePath = "/mnt/Data/docker-registry";
port = 5001;
openFirewall = true;
listenAddress = "0.0.0.0";
enableDelete = true;
};
}