mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
commit
0da944b2d6
2 changed files with 26 additions and 2 deletions
23
modules/hosts/nixos/nixnuc/audiobookshelf.nix
Normal file
23
modules/hosts/nixos/nixnuc/audiobookshelf.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{ ... }: let
|
||||||
|
volume_base = "/orico/audiobookshelf";
|
||||||
|
in {
|
||||||
|
# Audiobookshelf
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
"audiobookshelf" = {
|
||||||
|
autoStart = true;
|
||||||
|
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
||||||
|
environment = {
|
||||||
|
AUDIOBOOKSHELF_UID = "99";
|
||||||
|
AUDIOBOOKSHELF_GID = "100";
|
||||||
|
};
|
||||||
|
ports = [ "13378:80" ];
|
||||||
|
volumes = [
|
||||||
|
"${volume_base}/audiobooks:/audiobooks"
|
||||||
|
"${volume_base}/podcasts:/podcasts"
|
||||||
|
"${volume_base}/printbooks:/printbooks"
|
||||||
|
"${volume_base}/config:/config"
|
||||||
|
"${volume_base}/metadata:/metadata"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, config, hostname, pkgs, sops-nix, username, ... }: {
|
{ inputs, config, hostname, pkgs, sops-nix, username, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./audiobookshelf.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
@ -118,9 +119,9 @@
|
||||||
authKeyFile = config.sops.secrets.tailscale_key.path;
|
authKeyFile = config.sops.secrets.tailscale_key.path;
|
||||||
extraUpFlags = [
|
extraUpFlags = [
|
||||||
"--advertise-exit-node"
|
"--advertise-exit-node"
|
||||||
"--operator"
|
"--operator=${username}"
|
||||||
"${username}"
|
|
||||||
"--ssh"
|
"--ssh"
|
||||||
|
"--advertise-routes=192.168.20.0/22"
|
||||||
];
|
];
|
||||||
useRoutingFeatures = "both";
|
useRoutingFeatures = "both";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue