move testhosts to shared from lass
This commit is contained in:
parent
f8fabf4ea6
commit
a204949071
@ -2,35 +2,7 @@
|
|||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
{
|
||||||
testHosts = lib.genAttrs [
|
|
||||||
"test-arch"
|
|
||||||
"test-centos6"
|
|
||||||
"test-centos7"
|
|
||||||
] (name: {
|
|
||||||
inherit name;
|
|
||||||
cores = 1;
|
|
||||||
nets = {
|
|
||||||
retiolum = {
|
|
||||||
addrs4 = ["10.243.111.111"];
|
|
||||||
addrs6 = ["42:0:0:0:0:0:0:7357"];
|
|
||||||
aliases = [
|
|
||||||
"test.retiolum"
|
|
||||||
];
|
|
||||||
tinc.pubkey = ''
|
|
||||||
-----BEGIN RSA PUBLIC KEY-----
|
|
||||||
MIIBCgKCAQEAy41YKF/wpHLnN370MSdnAo63QUW30aw+6O79cnaJyxoL6ZQkk4Nd
|
|
||||||
mrX2tBIfb2hhhgm4Jecy33WVymoEL7EiRZ6gshJaYwte51Jnrac6IFQyiRGMqHY5
|
|
||||||
TG/6IzzTOkeQrT1fw3Yfh0NRfqLBZLr0nAFoqgzIVRxvy+QO1gCU2UDKkQ/y5df1
|
|
||||||
K+YsMipxU08dsOkPkmLdC/+vDaZiEdYljIS3Omd+ED5JmLM3MSs/ZPQ8xjkjEAy8
|
|
||||||
QqD9/67bDoeXyg1ZxED2n0+aRKtU/CK/66Li//yev6yv38OQSEM4t/V0dr9sjLcY
|
|
||||||
VIdkxKf96F9r3vcDf/9xw2HrqVoy+D5XYQIDAQAB
|
|
||||||
-----END RSA PUBLIC KEY-----
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
hosts = addNames {
|
hosts = addNames {
|
||||||
echelon = {
|
echelon = {
|
||||||
cores = 2;
|
cores = 2;
|
||||||
@ -241,7 +213,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // testHosts;
|
};
|
||||||
users = addNames {
|
users = addNames {
|
||||||
lass = {
|
lass = {
|
||||||
pubkey = readFile ../../Zpubkeys/lass.ssh.pub;
|
pubkey = readFile ../../Zpubkeys/lass.ssh.pub;
|
||||||
|
@ -2,7 +2,35 @@
|
|||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
let
|
||||||
|
testHosts = lib.genAttrs [
|
||||||
|
"test-arch"
|
||||||
|
"test-centos6"
|
||||||
|
"test-centos7"
|
||||||
|
] (name: {
|
||||||
|
inherit name;
|
||||||
|
cores = 1;
|
||||||
|
nets = {
|
||||||
|
retiolum = {
|
||||||
|
addrs4 = ["10.243.111.111"];
|
||||||
|
addrs6 = ["42:0:0:0:0:0:0:7357"];
|
||||||
|
aliases = [
|
||||||
|
"test.retiolum"
|
||||||
|
];
|
||||||
|
tinc.pubkey = ''
|
||||||
|
-----BEGIN RSA PUBLIC KEY-----
|
||||||
|
MIIBCgKCAQEAy41YKF/wpHLnN370MSdnAo63QUW30aw+6O79cnaJyxoL6ZQkk4Nd
|
||||||
|
mrX2tBIfb2hhhgm4Jecy33WVymoEL7EiRZ6gshJaYwte51Jnrac6IFQyiRGMqHY5
|
||||||
|
TG/6IzzTOkeQrT1fw3Yfh0NRfqLBZLr0nAFoqgzIVRxvy+QO1gCU2UDKkQ/y5df1
|
||||||
|
K+YsMipxU08dsOkPkmLdC/+vDaZiEdYljIS3Omd+ED5JmLM3MSs/ZPQ8xjkjEAy8
|
||||||
|
QqD9/67bDoeXyg1ZxED2n0+aRKtU/CK/66Li//yev6yv38OQSEM4t/V0dr9sjLcY
|
||||||
|
VIdkxKf96F9r3vcDf/9xw2HrqVoy+D5XYQIDAQAB
|
||||||
|
-----END RSA PUBLIC KEY-----
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
in {
|
||||||
hosts = addNames {
|
hosts = addNames {
|
||||||
wolf = {
|
wolf = {
|
||||||
#dc = "shack";
|
#dc = "shack";
|
||||||
@ -32,7 +60,7 @@ with lib;
|
|||||||
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
||||||
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKYMXMWZIK0jjnZDM9INiYAKcwjXs2241vew54K8veCR";
|
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKYMXMWZIK0jjnZDM9INiYAKcwjXs2241vew54K8veCR";
|
||||||
};
|
};
|
||||||
};
|
} // testHosts;
|
||||||
users = addNames {
|
users = addNames {
|
||||||
shared = {
|
shared = {
|
||||||
mail = "spam@krebsco.de";
|
mail = "spam@krebsco.de";
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
inherit (import ../4lib { inherit pkgs lib; }) getDefaultGateway;
|
|
||||||
inherit (lib) head;
|
|
||||||
|
|
||||||
in {
|
|
||||||
imports = [
|
imports = [
|
||||||
../2configs/base.nix
|
../2configs/base.nix
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../4lib { inherit pkgs lib; }) getDefaultGateway;
|
|
||||||
inherit (lib) head;
|
inherit (lib) head;
|
||||||
|
|
||||||
ip = "168.235.148.52";
|
ip = "168.235.148.52";
|
||||||
|
gw = "168.235.148.1";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../2configs/base.nix
|
../2configs/base.nix
|
||||||
@ -16,7 +16,7 @@ in {
|
|||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
networking.defaultGateway = getDefaultGateway ip;
|
networking.defaultGateway = gw;
|
||||||
networking.nameservers = [
|
networking.nameservers = [
|
||||||
"8.8.8.8"
|
"8.8.8.8"
|
||||||
];
|
];
|
@ -1,10 +1,10 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../4lib { inherit pkgs lib; }) getDefaultGateway;
|
|
||||||
inherit (lib) head;
|
inherit (lib) head;
|
||||||
|
|
||||||
ip = "168.235.145.85";
|
ip = "168.235.145.85";
|
||||||
|
gw = "168.235.145.1";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../2configs/base.nix
|
../2configs/base.nix
|
||||||
@ -16,7 +16,7 @@ in {
|
|||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
networking.defaultGateway = getDefaultGateway ip;
|
networking.defaultGateway = gw;
|
||||||
networking.nameservers = [
|
networking.nameservers = [
|
||||||
"8.8.8.8"
|
"8.8.8.8"
|
||||||
];
|
];
|
Loading…
Reference in New Issue
Block a user