Fixed undefined variable : name when addind extraConfig.

This commit is contained in:
Raphaël Numbus
2026-02-25 12:18:13 +01:00
parent 475e37d559
commit ae18febf6d
9 changed files with 29 additions and 9 deletions
+3 -1
View File
@@ -8,11 +8,13 @@ let
# Helper # Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.frigate; cfg = config.numbus.services.frigate;
# Container config
name = "frigate";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "Frigate, your fully-local NVR (Network Video Recorder)"; description = "Frigate, your fully-local NVR (Network Video Recorder)";
name = "frigate";
pod = "home-assistant"; pod = "home-assistant";
defaultPort = "8971"; defaultPort = "8971";
scheme = "https"; scheme = "https";
+3 -1
View File
@@ -9,11 +9,13 @@ let
# Helper # Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.gitea; cfg = config.numbus.services.gitea;
# Container config
name = "gitea";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "Gitea, your own self-hosted git platform"; description = "Gitea, your own self-hosted git platform";
name = "gitea";
pod = "gitea"; pod = "gitea";
defaultPort = "3000"; defaultPort = "3000";
dataDirEnabled = false; dataDirEnabled = false;
+5 -1
View File
@@ -3,15 +3,19 @@
with lib; with lib;
let let
# Version tagging
homeAssistantVersion = "2026.2.3"; homeAssistantVersion = "2026.2.3";
mqttVersion = "2.1-alpine"; mqttVersion = "2.1-alpine";
# Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.home-assistant; cfg = config.numbus.services.home-assistant;
# Container config
name = "home-assistant";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "Home Assistant, libre house control and much more"; description = "Home Assistant, libre house control and much more";
name = "home-assistant";
pod = "home-assistant"; pod = "home-assistant";
defaultPort = "8123"; defaultPort = "8123";
dataDirEnabled = false; dataDirEnabled = false;
+1 -1
View File
@@ -15,8 +15,8 @@ let
in in
helper.mkPodmanService { helper.mkPodmanService {
description = "Immich, Google Photos but better";
inherit name; inherit name;
description = "Immich, Google Photos but better";
pod = "immich"; pod = "immich";
defaultPort = "2283"; defaultPort = "2283";
generatedSecrets = { generatedSecrets = {
+5 -1
View File
@@ -3,14 +3,18 @@
with lib; with lib;
let let
# Version tagging
it-toolsVersion = "2024.10.22-7ca5933"; it-toolsVersion = "2024.10.22-7ca5933";
# Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.it-tools; cfg = config.numbus.services.it-tools;
# Container config
name = "it-tools";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "IT-tools, useful tools when doing IT"; description = "IT-tools, useful tools when doing IT";
name = "it-tools";
pod = "false"; pod = "false";
defaultPort = "8880"; defaultPort = "8880";
configDir = false; configDir = false;
+3 -1
View File
@@ -12,11 +12,13 @@ let
# Helper # Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.nextcloud; cfg = config.numbus.services.nextcloud;
# Container config
name = "nextcloud";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "Nextcloud, your own online office suite"; description = "Nextcloud, your own online office suite";
name = "nextcloud";
pod = "nextcloud"; pod = "nextcloud";
defaultPort = "1100"; defaultPort = "1100";
generatedSecrets = { generatedSecrets = {
+3 -1
View File
@@ -9,11 +9,13 @@ let
# Helper # Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.passbolt; cfg = config.numbus.services.passbolt;
# Container config
name = "passbolt";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "Passbolt, your password manager"; description = "Passbolt, your password manager";
name = "passbolt";
pod = "passbolt"; pod = "passbolt";
defaultPort = "4433"; defaultPort = "4433";
scheme = "https"; scheme = "https";
+3 -1
View File
@@ -8,11 +8,13 @@ let
# Helper # Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.pi-hole; cfg = config.numbus.services.pi-hole;
# Container config
name = "pi-hole";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "Pi-Hole, the ads black hole"; description = "Pi-Hole, the ads black hole";
name = "pi-hole";
defaultPort = "4443"; defaultPort = "4443";
scheme = "https"; scheme = "https";
dependencies = [ "network.target" "multi-user.target" ]; dependencies = [ "network.target" "multi-user.target" ];
+3 -1
View File
@@ -8,11 +8,13 @@ let
# Helper # Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.traefik; cfg = config.numbus.services.traefik;
# Container config
name = "traefik";
in in
helper.mkPodmanService { helper.mkPodmanService {
inherit name;
description = "Traefik reverse proxy, one to rule them all"; description = "Traefik reverse proxy, one to rule them all";
name = "traefik";
reverseProxied = false; reverseProxied = false;
dependencies = [ "network.target" "multi-user.target" ]; dependencies = [ "network.target" "multi-user.target" ];
dataDir = false; dataDir = false;