From 59b9bf48851f85de8844d888de6c82dcfb4df5fa Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Wed, 14 Feb 2024 09:23:20 +0100 Subject: deploy system1 --- configs/default.nix | 10 ++++++++++ public/aforemny.id_rsa.pub | 1 + secrets | 2 +- systems/system1/configuration.nix | 1 + terraform.output.json | 7 +++++++ 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 configs/default.nix create mode 100644 public/aforemny.id_rsa.pub create mode 100644 terraform.output.json diff --git a/configs/default.nix b/configs/default.nix new file mode 100644 index 0000000..7d65206 --- /dev/null +++ b/configs/default.nix @@ -0,0 +1,10 @@ +{ ... }: +# TODO `fysiweb` should import config +# +# `config/default.nix` should automatically be imported by all systems through +# `fysiweb deploy`, if it exists. +{ + users.users.root.openssh.authorizedKeys.keyFiles = [ + ../public/aforemny.id_rsa.pub + ]; +} diff --git a/public/aforemny.id_rsa.pub b/public/aforemny.id_rsa.pub new file mode 100644 index 0000000..5b2b7c4 --- /dev/null +++ b/public/aforemny.id_rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDK6usuxR5wQpgJp8MlCK0DC7d2G69hOMzLylRlEciI6x+tGfpNua2IHQ/4JwDrVu1mbP39YbRyKBKzu2qKV7ZQp9oOoFYUeYaf/IuwfSCb48dWUeVTRzLnW7oP7X5T6fg7t+rio9ZBLpuoDS55DHNOlbSPSK2WpjJDvsS4VfXbi123P061FjwUyGHORZjBN+nHBAlE6vekPZSMmZLLQ6c0xx+Gc6B3FQAT92Jg83YMnL6fOUwKHDeCwUAj6jIhcDmYr+WhHl0gWPngmX3y58h160Ma0Fb215VtCxxLndTDKCWuP+OjTIykq372EXTAwmloG2ZF2pdS93BDpYijtZMz aforemny@x1e diff --git a/secrets b/secrets index be3e21a..9086d50 160000 --- a/secrets +++ b/secrets @@ -1 +1 @@ -Subproject commit be3e21a903bfb6fa2a8041385331969bbfecdd16 +Subproject commit 9086d50a88d76a24308406eb2f014dec2e13872a diff --git a/systems/system1/configuration.nix b/systems/system1/configuration.nix index c930171..d39af2e 100644 --- a/systems/system1/configuration.nix +++ b/systems/system1/configuration.nix @@ -2,6 +2,7 @@ imports = [ + ../../configs ]; networking.hostName = "system1"; diff --git a/terraform.output.json b/terraform.output.json new file mode 100644 index 0000000..045b102 --- /dev/null +++ b/terraform.output.json @@ -0,0 +1,7 @@ +{ + "system1-ipv4_address": { + "sensitive": false, + "type": "string", + "value": "49.13.201.137" + } +} -- cgit v1.2.3