From 7c5dce9fbdd726976221a9a338ca3fdae5543670 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Wed, 16 Sep 2020 19:32:23 +0200 Subject: [PATCH] Migrate to 20.09 --- nixos/machines/apollo/configuration.nix | 23 ++++++++--------- nixos/machines/hera/boot.nix | 2 +- nixos/machines/hera/cloud.nix | 1 - nixos/machines/hera/secret/ssh_boot_rsa | Bin 0 -> 1697 bytes nixos/roles/boot-key.nix | 26 +++++++++----------- nixos/roles/server/init_ssh.nix | 6 +---- overlays/email2matrix/package.nix | 2 +- overlays/neuron-language-server/package.nix | 6 +++-- 8 files changed, 30 insertions(+), 36 deletions(-) create mode 100644 nixos/machines/hera/secret/ssh_boot_rsa diff --git a/nixos/machines/apollo/configuration.nix b/nixos/machines/apollo/configuration.nix index 84092569..6eb42cb1 100644 --- a/nixos/machines/apollo/configuration.nix +++ b/nixos/machines/apollo/configuration.nix @@ -28,7 +28,8 @@ in { m0wire = { allowedIPsAsRoutes = false; ips = [ "${hosts.apollo-wg}/112" ]; - privateKeyFile = "/etc/nixos/nixos/machines/apollo/secret/wireguard-private"; + privateKeyFile = + "/etc/nixos/nixos/machines/apollo/secret/wireguard-private"; peers = [{ publicKey = wireguard.pub.hera; allowedIPs = [ "::/0" ]; @@ -90,15 +91,15 @@ in { }; boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; }; - cdark_net = { - enable = true; - hostName = "${me.user}_${config.networking.hostName}"; - ed25519PrivateKeyFile = /etc/nixos/nixos/machines + "/${config.networking.hostName}" - + /secret/tinc/ed25519_key.priv; - hostsDirectory = - (builtins.fetchGit "ssh://git@git.darmstadt.ccc.de/cdark.net/hosts"); - ip6address = "fd23:42:cda:4342::2"; - ip4address = "172.20.71.2"; - }; + #cdark_net = { + #enable = true; + #hostName = "${me.user}_${config.networking.hostName}"; + #ed25519PrivateKeyFile = /etc/nixos/nixos/machines + #+ "/${config.networking.hostName}" + /secret/tinc/ed25519_key.priv; + #hostsDirectory = + #pkgs.fetchgit { url = "ssh://git@git.darmstadt.ccc.de/cdark.net/hosts"; }; + #ip6address = "fd23:42:cda:4342::2"; + #ip4address = "172.20.71.2"; + #}; system.stateVersion = "19.09"; } diff --git a/nixos/machines/hera/boot.nix b/nixos/machines/hera/boot.nix index e9c4d3ef..1d7013fa 100644 --- a/nixos/machines/hera/boot.nix +++ b/nixos/machines/hera/boot.nix @@ -1,6 +1,6 @@ { ... }: { - m-0.server.initSSHKey = ./secret/boot_rsa; + m-0.server.initSSHKey = ./secret/ssh_boot_rsa; boot = { loader.grub = { diff --git a/nixos/machines/hera/cloud.nix b/nixos/machines/hera/cloud.nix index f970d5ca..e5803fef 100644 --- a/nixos/machines/hera/cloud.nix +++ b/nixos/machines/hera/cloud.nix @@ -54,7 +54,6 @@ let nextcloud = { enable = true; hostName = hostname; - nginx.enable = true; package = pkgs.nextcloud18; maxUploadSize = "10g"; caching = { diff --git a/nixos/machines/hera/secret/ssh_boot_rsa b/nixos/machines/hera/secret/ssh_boot_rsa new file mode 100644 index 0000000000000000000000000000000000000000..39f2582ba8f5f48f3c9590f48ee9def5c8aa07a4 GIT binary patch literal 1697 zcmV;S24499M@dveQdv+`0LVug8a`Q$Wge2uk1Ek>6|WVakDh;}yalkw_?>x{>HTa{+~q;<5Dsti z^8imCl&uGJp*6$SLqc*M@ax6^YkJFFW~*d{gowDkkm<~reBn(A{W=^horB;<2qtiz zWW^kbV9`sguFn;}h-KD$oJ2sL8tr+ExE1@(r1YKI*{Y0?XyuqO4?HX#!(KYibzI!p zXo1CQw8?-Hf0v7%-86aRbO&lk0kB!BX1}J*GHsOoi?A&r!IpIV(2`C6`FC5&TI`E< zV{?pree8va63<<*q^LNsqQ>PsRWk?9K~QV3LQX%e=|biE>2_vyfnQxh)TMn=60ut` zmTczCNnp+k2Gsxhc&mOqL^G_tZE0<4@Lcie%7q^k$g^ODNxf$jy{#J3Ko*t7+!A0v zrro1JWC6rBzi4OD&2#QwpGob#P)VcBl?rtSh^3;KG2#yK<$~~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