Compare commits

..

No commits in common. "81607cd8ff76cf4641bda7edb1872613c827e89b" and "a5ce6a01dd23dbad8e5f90f890891936963c0be8" have entirely different histories.

3 changed files with 8 additions and 20 deletions

View file

@ -35,6 +35,5 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"sops.binPath": "/home/jahanson/.nix-profile/bin/sops"
}
}

View file

@ -134,15 +134,6 @@ in
# System settings and services.
mySystem = {
purpose = "Production";
# Containers
containers = {
plex = {
enable = true;
};
};
# System
system = {
motd.networkInterfaces = [ "enp36s0f0" ];
# Incus
@ -169,7 +160,6 @@ in
};
};
# Services
services = {
podman.enable = true;
libvirt-qemu.enable = true;

View file

@ -12,11 +12,11 @@ let
user = "kah"; # string
group = "kah"; # string
port = 32400; # int
cfg = config.mySystem.containers.${app};
cfg = config.mySystem.services.${app};
in
{
# Options
options.mySystem.containers.${app} = {
options.mySystem.services.${app} = {
enable = mkEnableOption "${app}";
# TODO add to homepage
# addToHomepage = mkEnableOption "Add ${app} to homepage" // {
@ -34,17 +34,16 @@ in
image = "${image}";
user = "568:568";
volumes = [
"/nahar/containers/volumes/${app}:/config/Library/Application Support/Plex Media Server:rw"
"/nahar/containers/volumes/${app}:/config:rw"
"/moria/media:/media:rw"
"tmpfs:/config/Library/Application Support/Plex Media Server/Logs:rw"
"tmpfs:/tmp:rw"
# "/eru/backup/apps/plex:/config:rw"
];
environment = {
TZ = "America/Chicago";
# PLEX_ADVERTISE_URL = "https://${app}.hsn.dev";
PLEX_NO_AUTH_NETWORKS = "10.1.1.0/24,10.1.2.0/24";
PLEX_ADVERTISE_URL = "https://${app}.hsn.dev";
PLEX_NO_AUTH_NETWORKS = "10.1.1.0/24";
};
ports = [ "${toString port}:${toString port}" ]; # expose port
ports = [ "${port}:${port}" ]; # expose port
};
# Firewall