feat: migrate home-server to LattePanda 3 Delta

This commit is contained in:
Felix Schröter 2022-08-03 03:15:06 +02:00
parent 9fbea3db5c
commit 9693e762df
Signed by: felschr
GPG key ID: 671E39E6744C807D
10 changed files with 112 additions and 42 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
services.jellyfin.enable = true;
@ -6,7 +6,12 @@
services.jellyfin.openFirewall = true;
# for hardware acceleration
users.users.jellyfin.extraGroups = [ "video" "render" ];
users.users.${config.services.jellyfin.user}.extraGroups =
[ "video" "render" ];
systemd.services.jellyfin.serviceConfig = {
PrivateDevices = lib.mkForce false;
DeviceAllow = lib.mkForce [ "/dev/dri/renderD128" ];
};
services.nginx = {
virtualHosts."media.felschr.com" = {

View file

@ -12,9 +12,7 @@ in {
virtualisation.oci-containers.containers = {
owntracks-recorder = {
# official image does not support aarch64
# image = "owntracks/recorder";
image = "easypi/ot-recorder-arm";
image = "owntracks/recorder";
ports = [ "8083:8083" ];
environment = {
OTR_HOST = "localhost";
@ -23,11 +21,7 @@ in {
};
# provide OTR_PASS
environmentFiles = [ config.age.secrets.owntracks-recorder-env.path ];
# easypi/ot-recorder-arm uses different store location
# volumes = [ "/var/lib/owntracks/recorder/store:/store" ];
volumes = [
"/var/lib/owntracks/recorder/store:/var/spool/owntracks/recorder/store"
];
volumes = [ "/var/lib/owntracks/recorder/store:/store" ];
extraOptions = [ "--network=host" ];
};