From 240b1b456852531bad14d944ba8813b434d62271 Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Thu, 19 Feb 2026 00:14:26 +0100 Subject: [PATCH] container thingies --- machines/artemis/modules.nix | 6 ++++++ machines/solis/modules.nix | 1 + modules/apps/dev/default.nix | 1 + modules/containers/default.nix | 6 +++++- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/machines/artemis/modules.nix b/machines/artemis/modules.nix index 40208c2..bf9e65f 100644 --- a/machines/artemis/modules.nix +++ b/machines/artemis/modules.nix @@ -27,6 +27,12 @@ accent = "blue"; }; + containers = { + enable = true; + jellyfin.enable = true; + interface = "wlp192s0"; + }; + users.default.enable = true; base = { diff --git a/machines/solis/modules.nix b/machines/solis/modules.nix index 2eef00c..7d3520a 100644 --- a/machines/solis/modules.nix +++ b/machines/solis/modules.nix @@ -11,6 +11,7 @@ in { containers = { enable = true; backupDir = "/home/${username}/backups"; + interface = "enp2s0"; nginx.enable = true; vaultwarden.enable = true; diff --git a/modules/apps/dev/default.nix b/modules/apps/dev/default.nix index f19e21f..1628d1b 100644 --- a/modules/apps/dev/default.nix +++ b/modules/apps/dev/default.nix @@ -38,6 +38,7 @@ in { sqlitebrowser typst xclip + unityhub uv zed-editor diff --git a/modules/containers/default.nix b/modules/containers/default.nix index 4bc2f02..04c8b5e 100644 --- a/modules/containers/default.nix +++ b/modules/containers/default.nix @@ -10,11 +10,15 @@ in { ./nginx.nix ./forgejo.nix ./vaultwarden.nix + ./jellyfin.nix ]; options = { horseman.containers = { enable = mkEnableOption "Containers"; + interface = mkOption { + type = types.str; + }; backupDir = mkOption { type = types.str; }; @@ -26,7 +30,7 @@ in { enable = true; # Use "ve-*" when using nftables instead of iptables internalInterfaces = ["ve-+"]; - externalInterface = "enp2s0"; + externalInterface = cfg.interface; # Lazy IPv6 connectivity for the container enableIPv6 = true; };