From cdca149e72c5984c50c1937c0331db51a41b6bd0 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 20 Sep 2022 22:57:44 +0200 Subject: [PATCH] add ssh and pgp.key --- nixos/assets/pgp.key | 89 +++++++++++++++++++++++++++ nixos/machines/robi/configuration.nix | 1 + nixos/machines/robi/nginx.nix | 20 ++++++ 3 files changed, 110 insertions(+) create mode 100644 nixos/assets/pgp.key diff --git a/nixos/assets/pgp.key b/nixos/assets/pgp.key new file mode 100644 index 0000000..dcbf931 --- /dev/null +++ b/nixos/assets/pgp.key @@ -0,0 +1,89 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFcWQhEBEADwt+hHRZxZx05USejn4x5LVWqqg5I2nIzjwI8pVyBra2AmXaMA +SAImFk1W6oM35rwYmez6TG8QC7RPRUrMHX2aAdDwJ/VtU/b87q0ICwlMxYUnikg1 +tsHV4kRB7ukm+Rs0ECMqZzjwdlbiEEfQ6VPUrIBzDHeD0idkC82DonZ6xe083klH +LpO36ckBOtyaoZZspzRu5yB76vsbeviVqsQ9WTQ8GoQk1i6FUbTbtOlvjhtx05Rk +ic66RrfFSM/ElLe5yA96kZd7m/Sn9WIRwRj3clxnT1vAVpMlpISsTutEQtuG3MDX +tT3EPVSSZEEcY1xxlJF+u1JZu4QqqtH+nczjshv+z3HZdmGd7OGqmgI8D3Ly/Ufi +Uyz+ewZbhbgy/XSHqwriUbnMuE9OKxx0LqlQLA59+/icT+upW4TexiHKd6PYeSeJ +kCxUEAmzqxsnilmwbehQrmmhI7uzxT8YxNGjF5mRJ1zOY55praTMKlp3MOxKvVPn +EZSyWm/22CuUZZEX0XR6TBgkL71VoGrlaezADzhHu9i5yBwbNCuiE2CYcS5IuDf+ +GkoKGtWeLbXTXccWOaIItSzlVUcJx3D009kTXeLEo2T1RPpz41LMvqWkUlZg4CA1 +zMAcudsXDtXGJEvS3dZAaiUUdASktzNL/ltuW/CXITJ0V7UjmA0pOyLDOQARAQAB +tBlsYX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ELlui4gDxhNs7V87cjRp1GFABjFpdtlE3s6n1P2jhv +ULpvkHm8E4AVB+KU4C4lf6VsV4m+de8BpHnLf9GHfs3MmvJQO8dRMxRTG94uE6Gs +CM++iNp3CJaQtqt9cdp1SOnwVuJH7vAEe11vWMr/qZSLr2tQHk3/rDHOxUm+QqTp +o4y6VH0Per2b0MGq3BIqe1JjgaAKBXYbcCaLbJATo3udgFIAyAVmayHx9W6u/zYw +Du91HUdZiZDqWNNakF5BA04i3iARmKrHgm5yTYtT1TlTRDk+FKd/0Uo6QLvHQa1y +qse8kvGypVZN0bCA5YMm+K1jHPPLgZee2LI0p0Dd+ize49IT6W9EwA9TrDyNaXqb +ClAD2SgNhAMi1yskN6C6jQ1lOGVqSIvPkSpt1KVoEPajeLbkR71V/wEIxFtS5IX5 +kdlSKp65Lw== +=DWZj +-----END PGP PUBLIC KEY BLOCK----- diff --git a/nixos/machines/robi/configuration.nix b/nixos/machines/robi/configuration.nix index 53d489c..838fa34 100644 --- a/nixos/machines/robi/configuration.nix +++ b/nixos/machines/robi/configuration.nix @@ -9,6 +9,7 @@ ../../system/all/syncthing.nix ../../system/all/tinc.nix ../../system/server/netdata.nix + ../../system/server/packages.nix ./hetzner.nix diff --git a/nixos/machines/robi/nginx.nix b/nixos/machines/robi/nginx.nix index c3000f6..87c7caa 100644 --- a/nixos/machines/robi/nginx.nix +++ b/nixos/machines/robi/nginx.nix @@ -38,6 +38,26 @@ in enable = true; recommendedProxySettings = true; virtualHosts = { + + "ingolf-wagner.de" = { + forceSSL = true; + enableACME = true; + extraConfig = error.extraConfig; + root = "/srv/www/ingolf-wagner.de"; + locations = { + "/" = { }; + "= /pgp.key" = { + alias = pkgs.writeText "key" (lib.fileContents ../../assets/pgp.key); + }; + "= /gpg.key" = { + alias = pkgs.writeText "key" (lib.fileContents ../../assets/pgp.key); + }; + "= /ssh.key" = { + alias = pkgs.writeText "key" (lib.fileContents ../../assets/ssh/card_rsa.pub); + }; + } // error.locations; + }; + "stable-diffusion.ingolf-wagner.de" = { forceSSL = true; enableACME = true;