feat: migrate home-server to LattePanda 3 Delta
This commit is contained in:
parent
9fbea3db5c
commit
9693e762df
10 changed files with 112 additions and 42 deletions
|
@ -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" = {
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue