summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-27 12:20:42 +0100
committerlassulus <lassulus@lassul.us>2022-12-27 12:20:42 +0100
commitea9dbc8caf3111f80cc94de51eb6d6dace05e3c4 (patch)
tree19e53d951310470a845577bccaada149e26134bc
parent5a361e638f6619232b34c7ec03915d2a5a27ada5 (diff)
types host: remove cores
-rw-r--r--kartei/krebs/default.nix5
-rw-r--r--kartei/lass/blue.nix1
-rw-r--r--kartei/lass/coaxmetal.nix1
-rw-r--r--kartei/lass/daedalus.nix1
-rw-r--r--kartei/lass/dishfire.nix1
-rw-r--r--kartei/lass/echelon.nix1
-rw-r--r--kartei/lass/green.nix1
-rw-r--r--kartei/lass/hilum.nix1
-rw-r--r--kartei/lass/icarus.nix1
-rw-r--r--kartei/lass/lasspi.nix1
-rw-r--r--kartei/lass/littleT.nix1
-rw-r--r--kartei/lass/massulus.nix1
-rw-r--r--kartei/lass/mors.nix1
-rw-r--r--kartei/lass/prism.nix1
-rw-r--r--kartei/lass/shodan.nix1
-rw-r--r--kartei/lass/skynet.nix1
-rw-r--r--kartei/lass/styx.nix1
-rw-r--r--kartei/lass/xerxes.nix1
-rw-r--r--kartei/lass/yellow.nix1
-rw-r--r--kartei/makefu/default.nix18
-rw-r--r--kartei/others/default.nix3
-rw-r--r--kartei/tv/default.nix9
-rw-r--r--krebs/0tests/data/test-config.nix1
-rw-r--r--krebs/5pkgs/simple/generate-secrets/default.nix1
-rw-r--r--lass/2configs/default.nix1
-rw-r--r--lass/5pkgs/l-gen-secrets/default.nix1
-rw-r--r--lib/types.nix3
-rw-r--r--makefu/2configs/tools/init-host/default.nix1
28 files changed, 0 insertions, 61 deletions
diff --git a/kartei/krebs/default.nix b/kartei/krebs/default.nix
index e5626d923..7419ba13f 100644
--- a/kartei/krebs/default.nix
+++ b/kartei/krebs/default.nix
@@ -15,7 +15,6 @@ with import ../../lib;
"test-all-krebs-modules"
] (name: {
inherit name;
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.73.57";
@@ -36,7 +35,6 @@ in {
hosts = mapAttrs hostDefaults ({
filebitch = {
ci = true;
- cores = 4;
nets = {
shack = {
ip4 = {
@@ -134,7 +132,6 @@ in {
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHl5cDF9QheXyMlNYIX17ILbgd94K50fZy7w0fDLvZlo ";
};
onebutton = {
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.0.101";
@@ -163,7 +160,6 @@ in {
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAcZg+iLaPZ0SpLM+nANxIjZC/RIsansjyutK0+gPhIe ";
};
ponte = {
- cores = 1;
owner = config.krebs.users.krebs;
extraZones = {
"krebsco.de" = /* bindzone */ ''
@@ -212,7 +208,6 @@ in {
};
puyak = {
ci = true;
- cores = 4;
nets = {
retiolum = {
ip4.addr = "10.243.77.2";
diff --git a/kartei/lass/blue.nix b/kartei/lass/blue.nix
index b26e7fba6..ddec9553d 100644
--- a/kartei/lass/blue.nix
+++ b/kartei/lass/blue.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.0.77";
diff --git a/kartei/lass/coaxmetal.nix b/kartei/lass/coaxmetal.nix
index 80d49dd97..d32f279fe 100644
--- a/kartei/lass/coaxmetal.nix
+++ b/kartei/lass/coaxmetal.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 16;
nets = {
retiolum = {
ip4.addr = "10.243.0.17";
diff --git a/kartei/lass/daedalus.nix b/kartei/lass/daedalus.nix
index 3033178ae..891cbd293 100644
--- a/kartei/lass/daedalus.nix
+++ b/kartei/lass/daedalus.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 2;
nets = rec {
retiolum = {
ip4.addr = "10.243.133.115";
diff --git a/kartei/lass/dishfire.nix b/kartei/lass/dishfire.nix
index a76d76e83..548320584 100644
--- a/kartei/lass/dishfire.nix
+++ b/kartei/lass/dishfire.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 4;
nets = rec {
internet = {
ip4 = rec {
diff --git a/kartei/lass/echelon.nix b/kartei/lass/echelon.nix
index cc38ccb1a..d66033ba4 100644
--- a/kartei/lass/echelon.nix
+++ b/kartei/lass/echelon.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.0.3";
diff --git a/kartei/lass/green.nix b/kartei/lass/green.nix
index 7623533b5..1c5d0aead 100644
--- a/kartei/lass/green.nix
+++ b/kartei/lass/green.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.0.66";
diff --git a/kartei/lass/hilum.nix b/kartei/lass/hilum.nix
index ce24a916c..27fd0620a 100644
--- a/kartei/lass/hilum.nix
+++ b/kartei/lass/hilum.nix
@@ -1,7 +1,6 @@
{ r6, w6, ... }:
{
consul = false;
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.20.123";
diff --git a/kartei/lass/icarus.nix b/kartei/lass/icarus.nix
index c9c7fc410..c19d4e15c 100644
--- a/kartei/lass/icarus.nix
+++ b/kartei/lass/icarus.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 2;
nets = rec {
retiolum = {
ip4.addr = "10.243.133.114";
diff --git a/kartei/lass/lasspi.nix b/kartei/lass/lasspi.nix
index 3461e8f34..aab44bc5e 100644
--- a/kartei/lass/lasspi.nix
+++ b/kartei/lass/lasspi.nix
@@ -1,7 +1,6 @@
{ r6, w6, ... }:
{
consul = false;
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.1.89";
diff --git a/kartei/lass/littleT.nix b/kartei/lass/littleT.nix
index 10e3a62e2..297d2dc62 100644
--- a/kartei/lass/littleT.nix
+++ b/kartei/lass/littleT.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.133.77";
diff --git a/kartei/lass/massulus.nix b/kartei/lass/massulus.nix
index 39e3254f7..6876e02b9 100644
--- a/kartei/lass/massulus.nix
+++ b/kartei/lass/massulus.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 1;
ci = false;
nets = {
retiolum = {
diff --git a/kartei/lass/mors.nix b/kartei/lass/mors.nix
index f912e5c02..c483fe5a3 100644
--- a/kartei/lass/mors.nix
+++ b/kartei/lass/mors.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.0.2";
diff --git a/kartei/lass/prism.nix b/kartei/lass/prism.nix
index 06fbdda16..c7965debf 100644
--- a/kartei/lass/prism.nix
+++ b/kartei/lass/prism.nix
@@ -1,6 +1,5 @@
{ config, krebs, r6, w6, ... }:
rec {
- cores = 4;
extraZones = {
"krebsco.de" = ''
cache 60 IN A ${nets.internet.ip4.addr}
diff --git a/kartei/lass/shodan.nix b/kartei/lass/shodan.nix
index 0f6080709..50ab86e6e 100644
--- a/kartei/lass/shodan.nix
+++ b/kartei/lass/shodan.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.0.4";
diff --git a/kartei/lass/skynet.nix b/kartei/lass/skynet.nix
index da7434e5e..2109d2e35 100644
--- a/kartei/lass/skynet.nix
+++ b/kartei/lass/skynet.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 2;
nets = rec {
retiolum = {
ip4.addr = "10.243.133.116";
diff --git a/kartei/lass/styx.nix b/kartei/lass/styx.nix
index 6c0b98075..0b13c1184 100644
--- a/kartei/lass/styx.nix
+++ b/kartei/lass/styx.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.11.1";
diff --git a/kartei/lass/xerxes.nix b/kartei/lass/xerxes.nix
index 94fbc78d4..96f619a70 100644
--- a/kartei/lass/xerxes.nix
+++ b/kartei/lass/xerxes.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 2;
consul = false;
nets = rec {
retiolum = {
diff --git a/kartei/lass/yellow.nix b/kartei/lass/yellow.nix
index 99a9eb35e..ebf824950 100644
--- a/kartei/lass/yellow.nix
+++ b/kartei/lass/yellow.nix
@@ -1,6 +1,5 @@
{ r6, w6, ... }:
{
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.0.14";
diff --git a/kartei/makefu/default.nix b/kartei/makefu/default.nix
index ecb834bbf..bf49a1766 100644
--- a/kartei/makefu/default.nix
+++ b/kartei/makefu/default.nix
@@ -58,21 +58,18 @@ with import ../../lib;
in {
hosts = mapAttrs hostDefaults {
cake = rec {
- cores = 4;
ci = false;
nets = {
retiolum.ip4.addr = "10.243.136.236";
};
};
crapi = rec { # raspi1
- cores = 1;
ci = false;
nets = {
retiolum.ip4.addr = "10.243.136.237";
};
};
firecracker = {
- cores = 4;
nets = {
retiolum.ip4.addr = "10.243.12.12";
};
@@ -80,28 +77,24 @@ in {
studio = rec {
ci = false;
- cores = 4;
nets = {
retiolum.ip4.addr = "10.243.227.163";
};
};
fileleech = rec {
ci = false;
- cores = 4;
nets = {
retiolum.ip4.addr = "10.243.113.98";
};
};
tsp = {
ci = true;
- cores = 1;
nets = {
retiolum.ip4.addr = "10.243.0.212";
};
};
x = {
ci = true;
- cores = 4;
syncthing.id = "OA36OF6-JEFCUJQ-OEYVTMH-DPCACQI-3AJRE5G-BFVMOUG-RPYJQE3-4ZCUWA5";
nets = {
retiolum.ip4.addr = "10.243.0.91";
@@ -113,7 +106,6 @@ in {
};
filepimp = rec {
ci = false;
- cores = 1;
nets = {
retiolum.ip4.addr = "10.243.153.102";
};
@@ -121,7 +113,6 @@ in {
omo = rec {
ci = true;
- cores = 2;
syncthing.id = "Y5OTK3S-JOJLAUU-KTBXKUW-M7S5UEQ-MMQPUK2-7CXO5V6-NOUDLKP-PRGAFAK";
nets = {
retiolum = {
@@ -139,7 +130,6 @@ in {
};
wbob = rec {
ci = true;
- cores = 4;
nets = {
retiolum = {
ip4.addr = "10.243.214.15";
@@ -164,7 +154,6 @@ in {
latte.euer IN A ${nets.internet.ip4.addr}
'';
};
- cores = 4;
nets = rec {
internet = {
ip4.addr = "178.254.30.202";
@@ -246,7 +235,6 @@ in {
music.euer IN A ${nets.internet.ip4.addr}
'';
};
- cores = 8;
nets = rec {
internet = {
ip4.addr = "142.132.189.140";
@@ -302,7 +290,6 @@ in {
sdev = rec {
ci = true;
- cores = 1;
nets = {
retiolum.ip4.addr = "10.243.83.237";
};
@@ -312,7 +299,6 @@ in {
# non-stockholm
flap = rec {
- cores = 1;
extraZones = {
"krebsco.de" = ''
flap IN A ${nets.internet.ip4.addr}
@@ -332,7 +318,6 @@ in {
};
nukular = rec {
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.231.219";
@@ -342,17 +327,14 @@ in {
shackdev = rec { # router@shack
- cores = 1;
nets.wiregrill.ip4.addr = "10.244.245.2";
};
rockit = rec { # router@home
- cores = 1;
nets.wiregrill.ip4.addr = "10.244.245.3";
};
senderechner = rec {
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.0.163";
diff --git a/kartei/others/default.nix b/kartei/others/default.nix
index f3ea8b80c..de0bd2f7f 100644
--- a/kartei/others/default.nix
+++ b/kartei/others/default.nix
@@ -43,7 +43,6 @@ in {
};
};
horisa = {
- cores = 2;
owner = config.krebs.users.ulrich; # main laptop
nets = {
retiolum = {
@@ -57,7 +56,6 @@ in {
};
};
hasegateway = {
- cores = 1;
owner = config.krebs.users.hase;
nets = {
#internet = {
@@ -343,7 +341,6 @@ in {
};
};
tpsw = {
- cores = 2;
owner = config.krebs.users.ciko; # main laptop
nets = {
retiolum = {
diff --git a/kartei/tv/default.nix b/kartei/tv/default.nix
index f7e86c598..005c26e88 100644
--- a/kartei/tv/default.nix
+++ b/kartei/tv/default.nix
@@ -40,7 +40,6 @@ in {
hosts = mapAttrs evalHost {
alnus = {
ci = true;
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.21.1";
@@ -64,7 +63,6 @@ in {
};
au = {
ci = true;
- cores = 4;
nets = {
retiolum = {
ip4.addr = "10.243.13.39";
@@ -89,7 +87,6 @@ in {
};
bu = {
ci = true;
- cores = 4;
nets = {
retiolum = {
ip4.addr = "10.243.13.36";
@@ -138,7 +135,6 @@ in {
};
mu = {
ci = true;
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.20.1";
@@ -230,7 +226,6 @@ in {
};
nomic = {
ci = true;
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.0.110";
@@ -256,7 +251,6 @@ in {
};
wu = {
ci = true;
- cores = 4;
nets = {
retiolum = {
ip4.addr = "10.243.13.37";
@@ -282,7 +276,6 @@ in {
};
querel = {
ci = true;
- cores = 2;
nets = {
retiolum = {
ip4.addr = "10.243.22.22";
@@ -313,7 +306,6 @@ in {
pubkey = "xu-1:pYRENvaxZqGeImwLA9qHmRwHV4jfKaYx4u1VcZ31x0s=";
};
ci = true;
- cores = 4;
nets = {
retiolum = {
ip4.addr = "10.243.13.38";
@@ -339,7 +331,6 @@ in {
};
zu = {
ci = true;
- cores = 4;
nets = {
retiolum = {
ip4.addr = "10.243.13.40";
diff --git a/krebs/0tests/data/test-config.nix b/krebs/0tests/data/test-config.nix
index f0927ddd9..33cb01245 100644
--- a/krebs/0tests/data/test-config.nix
+++ b/krebs/0tests/data/test-config.nix
@@ -8,7 +8,6 @@
];
krebs.hosts.minimal = {
- cores = 1;
secure = false;
};
diff --git a/krebs/5pkgs/simple/generate-secrets/default.nix b/krebs/5pkgs/simple/generate-secrets/default.nix
index f9a7450f7..a3c9f67c5 100644
--- a/krebs/5pkgs/simple/generate-secrets/default.nix
+++ b/krebs/5pkgs/simple/generate-secrets/default.nix
@@ -23,7 +23,6 @@ pkgs.writers.writeDashBin "generate-secrets" ''
cat <<EOF
$HOSTNAME = {
- cores = 1;
owner = config.krebs.users.krebs;
nets = {
retiolum = {
diff --git a/lass/2configs/default.nix b/lass/2configs/default.nix
index 49a04e9c2..e649c0dea 100644
--- a/lass/2configs/default.nix
+++ b/lass/2configs/default.nix
@@ -69,7 +69,6 @@ with import <stockholm/lib>;
];
networking.hostName = config.krebs.build.host.name;
- nix.maxJobs = config.krebs.build.host.cores;
krebs = {
enable = true;
diff --git a/lass/5pkgs/l-gen-secrets/default.nix b/lass/5pkgs/l-gen-secrets/default.nix
index d999a4334..6cb60eaa1 100644
--- a/lass/5pkgs/l-gen-secrets/default.nix
+++ b/lass/5pkgs/l-gen-secrets/default.nix
@@ -25,7 +25,6 @@ pkgs.writeDashBin "l-gen-secrets" ''
cat <<EOF
$HOSTNAME = {
- cores = 1;
nets = {
retiolum = {
ip4.addr = "10.243.0.changeme";
diff --git a/lib/types.nix b/lib/types.nix
index 67a0c6f1b..9f278c650 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -18,9 +18,6 @@ rec {
type = label;
default = config._module.args.name;
};
- cores = mkOption {
- type = uint;
- };
nets = mkOption {
type = attrsOf net;
default = {};
diff --git a/makefu/2configs/tools/init-host/default.nix b/makefu/2configs/tools/init-host/default.nix
index d1d3f7195..84f8e7730 100644
--- a/makefu/2configs/tools/init-host/default.nix
+++ b/makefu/2configs/tools/init-host/default.nix
@@ -23,7 +23,6 @@ pkgs.writeDashBin "generate-secrets" ''
cat <<EOF
$HOSTNAME = {
- cores = 1;
owner = config.krebs.users.makefu;
nets = {
retiolum = {