containers: make all variables explicit

Instead of merging the argument set just make all arguments explicit.
This commit is contained in:
steveej 2020-09-15 17:21:28 +02:00
parent fc94819a23
commit 0836c22881
5 changed files with 31 additions and 23 deletions

View file

@ -1,4 +1,7 @@
{ config, ... } @ args:
{ config
, hostAddress
, localAddress
}:
let
unstablepkgs = import <channels-nixos-unstable> { config = config.nixpkgs.config; };
@ -63,7 +66,7 @@ let
};
in args // {
in {
config = { pkgs, ... }: {
imports = [
../profiles/containers/configuration.nix
@ -189,4 +192,6 @@ in args // {
privateNetwork = true;
forwardPorts = [
];
inherit hostAddress localAddress;
}

View file

@ -1,12 +1,13 @@
{ ... } @ args:
{ hostAddress
, localAddress
, imapsPort ? 993
, sievePort ? 4190
}:
let
passwords = import ../../variables/passwords.crypt.nix;
in
{ imapsPort ? 993
, sievePort ? 4190
}: args // {
in {
config = { pkgs, ... }: {
imports = [
@ -158,4 +159,6 @@ in
protocol = "tcp";
}
];
inherit hostAddress localAddress;
}

View file

@ -1,10 +1,9 @@
{ ... } @ args:
{ hostAddress
, localAddress
, syncthingPort ? 22000
}:
let
in
{ syncthingPort ? 22000
}: args // {
{
config = { config, pkgs, ... }: {
imports = [
@ -41,4 +40,6 @@ in
protocol = "tcp";
}
];
inherit hostAddress localAddress;
}

View file

@ -1,10 +1,7 @@
{ ... } @ args:
let
in
{ httpsPort ? 443
}: args // {
{ hostAddress
, localAddress
, httpsPort ? 443
}: {
config = { config, pkgs, ... }: {
imports = [
../profiles/containers/configuration.nix
@ -95,4 +92,6 @@ in
protocol = "tcp";
}
];
inherit hostAddress localAddress;
}