From a6f777206acac0e537aa8892da419879e0972315 Mon Sep 17 00:00:00 2001 From: sterni Date: Mon, 18 Nov 2024 12:34:17 +0100 Subject: chore(sterni/machines/edwin): remove This machine hasn't existed for a while. Seems like I forgot to remove the expression after its final month ran out. Change-Id: I0e4abbd9af75eabfab0db106f851a1e43aa8c90f Reviewed-on: https://cl.tvl.fyi/c/depot/+/12807 Tested-by: BuildkiteCI Reviewed-by: sterni Autosubmit: sterni --- users/sterni/machines/edwin/network.nix | 62 --------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 users/sterni/machines/edwin/network.nix (limited to 'users/sterni/machines/edwin/network.nix') diff --git a/users/sterni/machines/edwin/network.nix b/users/sterni/machines/edwin/network.nix deleted file mode 100644 index 1e3d4e76f078..000000000000 --- a/users/sterni/machines/edwin/network.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ config, pkgs, lib, depot, ... }: - -let - ipv6 = "2a01:4f8:151:54d0::/64"; - - ipv4 = "176.9.107.207"; - gatewayv4 = "176.9.107.193"; - netmaskv4 = "255.255.255.224"; -in - -{ - config = { - boot = { - kernelParams = [ - "ip=${ipv4}::${gatewayv4}:${netmaskv4}::eth0:none" - ]; - - initrd.network = { - enable = true; - ssh = { - enable = true; - authorizedKeys = depot.users.sterni.keys.all; - hostKeys = [ - "/etc/nixos/unlock_rsa_key_openssh" - "/etc/nixos/unlock_ed25519_key_openssh" - ]; - }; - postCommands = '' - echo 'cryptsetup-askpass' >> /root/.profile - ''; - }; - }; - - networking = { - usePredictableInterfaceNames = false; - useDHCP = false; - interfaces."eth0".useDHCP = false; - - hostName = "edwin"; - - firewall = { - enable = true; - allowPing = true; - allowedTCPPorts = [ 22 80 443 ]; - }; - }; - - systemd.network = { - enable = true; - networks."eth0".extraConfig = '' - [Match] - Name = eth0 - - [Network] - Address = ${ipv6} - Gateway = fe80::1 - Address = ${ipv4}/27 - Gateway = ${gatewayv4} - ''; - }; - }; -} -- cgit 1.4.1