formatting and removed old code
This commit is contained in:
parent
6c700e2c5e
commit
7811654fb7
6 changed files with 26 additions and 125 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue