ops/nixos: tidy up hostnames

This commit is contained in:
Luke Granger-Brown 2021-04-10 20:15:30 +00:00
parent 1b3cb3f723
commit bfa7051e2f
5 changed files with 8 additions and 3 deletions

View file

@ -25,7 +25,7 @@
environment.etc."rundeck.nodes.yaml" = let
content = builtins.mapAttrs (name: value: {
nodename = name;
hostname = value.config.networking.fqdn;
hostname = value.config.my.rundeck.hostname;
tags = lib.concatStringsSep "," value.config.my.rundeck.tags;
username = "deployer";
osFamily = "unix";

View file

@ -11,6 +11,10 @@ in
{
imports = [ ../../../third_party/home-manager/nixos ];
options.my.rundeck.hostname = lib.mkOption {
type = lib.types.str;
default = config.networking.fqdn;
};
options.my.rundeck.expectedOnline = lib.mkOption {
type = lib.types.bool;
default = true;

View file

@ -66,6 +66,7 @@ in {
services.openssh.ports = [ 20022 ];
my.deploy.args = "-p 20022";
my.rundeck.hostname = "${config.networking.fqdn}:20022";
networking.firewall = {
interfaces.docker0.allowedTCPPorts = [ 25 ];

View file

@ -34,7 +34,7 @@ in {
# Networking!
networking = {
hostName = "swann"; # Define your hostname.
domain = "house.as205479.net";
domain = "int.as205479.net";
nameservers = ["8.8.8.8" "8.8.4.4"];
useDHCP = false;
interfaces = {

View file

@ -67,7 +67,7 @@ in {
# Networking!
networking = {
hostName = "totoro"; # Define your hostname.
domain = "lukegb.xyz";
domain = "int.as205479.net";
hostId = "676c08c4";
useDHCP = false;
interfaces.br-ext.useDHCP = true;