diff --git a/dns.tf b/dns.tf index d96f87c..a239277 100644 --- a/dns.tf +++ b/dns.tf @@ -23,6 +23,14 @@ resource "hetznerdns_record" "banditlair_dedicated_a" { ttl = 600 } +resource "hetznerdns_record" "nextcloud_a" { + zone_id = data.hetznerdns_zone.banditlair_zone.id + name = "cloud" + value = data.hcloud_floating_ip.main_ip.ip_address + type = "A" + ttl = 600 +} + # Matrix resource "hetznerdns_record" "matrix_a" { zone_id = data.hetznerdns_zone.banditlair_zone.id diff --git a/flake.nix b/flake.nix index 7190525..686d4e5 100644 --- a/flake.nix +++ b/flake.nix @@ -54,6 +54,7 @@ ({ networking.hostName = "backend1"; networking.domain = "banditlair.com"; + networking.localCommands = "ip addr add 95.216.177.3/32 dev enp1s0"; networking.firewall.allowedTCPPorts = [ 80 443 64738 ]; networking.firewall.allowedUDPPorts = [ 64738 ]; services.custom-backup-job = { diff --git a/modules/openssh.nix b/modules/openssh.nix index b4a0de4..51355be 100644 --- a/modules/openssh.nix +++ b/modules/openssh.nix @@ -3,5 +3,6 @@ services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keyFiles = [ ../ssh_keys/phfroidmont-desktop.pub + ../ssh_keys/froidmpa-laptop.pub ]; } diff --git a/ssh_keys/froidmpa-laptop.pub b/ssh_keys/froidmpa-laptop.pub new file mode 100644 index 0000000..ebf70fe --- /dev/null +++ b/ssh_keys/froidmpa-laptop.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILu2vaezsTNaTY8X4o2mFOmQguPnSAMOoPZRlW2ACAku froidmpa@froidmpa-laptop-2021-06-30 \ No newline at end of file