fix: update vtn-gw to new server
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
name = "vtn-gw";
|
||||
address = "195.42.37.37";
|
||||
address = "195.43.37.37";
|
||||
in {
|
||||
vtn-gw = { config, pkgs, ... }: {
|
||||
deployment.tags = [ "gw" ];
|
||||
@@ -15,8 +15,8 @@ in {
|
||||
|
||||
systemd.network = {
|
||||
# wait-online.enable = false;
|
||||
networks."40-ens3" = {
|
||||
matchConfig.Name = "ens3";
|
||||
networks."40-enp3s0" = {
|
||||
matchConfig.Name = "enp3s0";
|
||||
DHCP = "no";
|
||||
address = [ "${address}/29" ];
|
||||
routes = [ { Gateway = "195.43.37.33"; } ];
|
||||
@@ -34,7 +34,7 @@ in {
|
||||
|
||||
features = {
|
||||
os = {
|
||||
externalInterface = "ens3";
|
||||
externalInterface = "enp3s0";
|
||||
};
|
||||
};
|
||||
|
||||
37
gw/vtn-gw/hardware-configuration.nix
Normal file
37
gw/vtn-gw/hardware-configuration.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/f222513b-ded1-49fa-b591-20ce86a2fe7f";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/12CE-A600";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
1
gw/vtn-gw/ssh_host_key.pub
Normal file
1
gw/vtn-gw/ssh_host_key.pub
Normal file
@@ -0,0 +1 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDObXwTNIdw0NEQk4AG9qQNA9HiJW8OpGhVMFcQiuMkujearZB2KQvWE0ER3FVprIPo52HQ+nD0wmsF8ii/Hyu24Y3slCAGQ+oxjUdv3HNYTyd594qb3qo0h3X15Aa/OWDGHH476wrbpWkkP66ZcNyXYD7XQviTdH4rRYdrguq0OP8NU2j+7BXoM5ynnW2feUYLLNebI1QrPalo3SOpbUXBQWqEVLc+GprCqNxvm4Js1nVreNHyAv3RXrSJ+Fp/3NWTNmT9HDCA7ZCRmUWAcDKMtGs4u6G9+0tC/dJW8LH8JKtmvMHtWLYF2Fp/eqoPZpVn5kE418p6TWaswd/JPIj0A3PJIUzA8xTQn3ZNfibvudOPrqcVQw1vMIj5YKbZMku4QnENbh6L/qmoOjxiu0ccRXLeFvB91YJoy7yCFfeXkDWffVb0M/Mv3eDTDREnPyokj44DUcp6ZJ4yGh9eRFr4vZQNM6f1ZkgxyneesV/I/FHnJpdr2rGqjVDtDVIpzYM= root@ob-tailscale-itp-251003
|
||||
Reference in New Issue
Block a user