procolixVm
-> fediversityVm
This commit is contained in:
parent
3dc7f49a9c
commit
cd1679afec
9 changed files with 16 additions and 16 deletions
|
@ -12,8 +12,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = config.procolixVm.name;
|
hostName = config.fediversityVm.name;
|
||||||
domain = config.procolixVm.domain;
|
domain = config.fediversityVm.domain;
|
||||||
|
|
||||||
## REVIEW: Do we actually need that, considering that we have static IPs?
|
## REVIEW: Do we actually need that, considering that we have static IPs?
|
||||||
useDHCP = mkDefault true;
|
useDHCP = mkDefault true;
|
||||||
|
@ -23,14 +23,14 @@ in
|
||||||
ipv4 = {
|
ipv4 = {
|
||||||
addresses = [
|
addresses = [
|
||||||
{
|
{
|
||||||
inherit (config.procolixVm.ipv4) address prefixLength;
|
inherit (config.fediversityVm.ipv4) address prefixLength;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
ipv6 = {
|
ipv6 = {
|
||||||
addresses = [
|
addresses = [
|
||||||
{
|
{
|
||||||
inherit (config.procolixVm.ipv6) address prefixLength;
|
inherit (config.fediversityVm.ipv6) address prefixLength;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -38,11 +38,11 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultGateway = {
|
defaultGateway = {
|
||||||
address = config.procolixVm.ipv4.gateway;
|
address = config.fediversityVm.ipv4.gateway;
|
||||||
interface = "eth0";
|
interface = "eth0";
|
||||||
};
|
};
|
||||||
defaultGateway6 = {
|
defaultGateway6 = {
|
||||||
address = config.procolixVm.ipv6.gateway;
|
address = config.fediversityVm.ipv6.gateway;
|
||||||
interface = "eth0";
|
interface = "eth0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.procolixVm = {
|
options.fediversityVm = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
The name of the machine. Most of the time, this will look like `vm02XXX`
|
The name of the machine. Most of the time, this will look like `vm02XXX`
|
||||||
|
|
|
@ -13,14 +13,14 @@ let
|
||||||
secretsPrefix = ../../secrets;
|
secretsPrefix = ../../secrets;
|
||||||
secrets = import (secretsPrefix + "/secrets.nix");
|
secrets = import (secretsPrefix + "/secrets.nix");
|
||||||
keys = import ../../keys;
|
keys = import ../../keys;
|
||||||
hostPublicKey = keys.systems.${config.procolixVm.name};
|
hostPublicKey = keys.systems.${config.fediversityVm.name};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ./options.nix ];
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
ssh = {
|
ssh = {
|
||||||
host = config.procolixVm.ipv4.address;
|
host = config.fediversityVm.ipv4.address;
|
||||||
hostPublicKey = hostPublicKey;
|
hostPublicKey = hostPublicKey;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ in
|
||||||
|
|
||||||
## Inject the shared options from the resource's `config` into the NixOS
|
## Inject the shared options from the resource's `config` into the NixOS
|
||||||
## configuration.
|
## configuration.
|
||||||
procolixVm = config.procolixVm;
|
fediversityVm = config.fediversityVm;
|
||||||
|
|
||||||
## Read all the secrets, filter the ones that are supposed to be readable
|
## Read all the secrets, filter the ones that are supposed to be readable
|
||||||
## with this host's public key, and add them correctly to the configuration
|
## with this host's public key, and add them correctly to the configuration
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
procolixVm = {
|
fediversityVm = {
|
||||||
domain = "fediversity.eu";
|
domain = "fediversity.eu";
|
||||||
|
|
||||||
ipv4 = {
|
ipv4 = {
|
||||||
|
|
|
@ -23,7 +23,7 @@ let
|
||||||
./common/resource.nix
|
./common/resource.nix
|
||||||
(./. + "/${vmName}")
|
(./. + "/${vmName}")
|
||||||
];
|
];
|
||||||
procolixVm.name = vmName;
|
fediversityVm.name = vmName;
|
||||||
};
|
};
|
||||||
|
|
||||||
makeDeployments = mapAttrs (
|
makeDeployments = mapAttrs (
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
procolixVm = {
|
fediversityVm = {
|
||||||
ipv4.address = "185.206.232.34";
|
ipv4.address = "185.206.232.34";
|
||||||
ipv6.address = "2a00:51c0:12:1201::20";
|
ipv6.address = "2a00:51c0:12:1201::20";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
procolixVm = {
|
fediversityVm = {
|
||||||
ipv4.address = "185.206.232.179";
|
ipv4.address = "185.206.232.179";
|
||||||
ipv6.address = "2a00:51c0:12:1201::179";
|
ipv6.address = "2a00:51c0:12:1201::179";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
procolixVm = {
|
fediversityVm = {
|
||||||
ipv4.address = "185.206.232.186";
|
ipv4.address = "185.206.232.186";
|
||||||
ipv6.address = "2a00:51c0:12:1201::186";
|
ipv6.address = "2a00:51c0:12:1201::186";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
procolixVm = {
|
fediversityVm = {
|
||||||
ipv4.address = "185.206.232.187";
|
ipv4.address = "185.206.232.187";
|
||||||
ipv6.address = "2a00:51c0:12:1201::187";
|
ipv6.address = "2a00:51c0:12:1201::187";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue