formatting and removed old code

This commit is contained in:
pazpi 2024-08-28 21:03:48 +02:00
parent 6c700e2c5e
commit 7811654fb7
6 changed files with 26 additions and 125 deletions

View file

@ -1,7 +1,8 @@
{ config
, lib
, pkgs
, ...
{
config,
lib,
pkgs,
...
}:
with lib;
@ -104,26 +105,10 @@ in
environment.systemPackages = [ pkgs.jq ];
# virtualisation.oci-containers.containers = listToAttrs (flatten (mapAttrsToList
# (podName: podDef:
# mapAttrs
# (containerName: containerDef:
# filterAttrs (attrName: attrValue: attrName != "enable") containerDef
# # nameValuePair "${podName}-${containerName}" ({
# # inherit (containerDef) image;
# # extraOptions = [ "--pod=${podName}" ] ++ containerDef.extraOptions;
# # })
# )
# podDef.containers
# )
# cfg));
networking.firewall.allowedTCPPorts = flatten (
mapAttrsToList
(
name: podDef: map (portMapping: lib.toInt (lib.head (lib.splitString ":" portMapping))) podDef.ports
)
cfg
mapAttrsToList (
name: podDef: map (portMapping: lib.toInt (lib.head (lib.splitString ":" portMapping))) podDef.ports
) cfg
);
systemd.services =