Rename hummelberg-new to hummelberg
This commit is contained in:
parent
51f5e7eab9
commit
19bdd28b42
9 changed files with 133 additions and 133 deletions
26
host/hummelberg-old/networking.nix
Normal file
26
host/hummelberg-old/networking.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
useDHCP = false;
|
||||
#wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
hostName = "hummelberg";
|
||||
};
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
networking.wireguard.enable = true;
|
||||
networking.wireguard.interfaces = let
|
||||
meta = import ../../meta;
|
||||
vnetworks = meta.network.virtual;
|
||||
vnetworkName = "mgmt";
|
||||
in {
|
||||
"wg-${vnetworkName}" =
|
||||
pkgs.lib.qois.wireguard.makeInterface config.networking.hostName
|
||||
vnetworkName vnetworks.${vnetworkName};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue