System: Declaratively define networkmanager profiles
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
|
||||
modules = {
|
||||
network = {
|
||||
# Systemd-networkd configs
|
||||
networks = {
|
||||
# This should override the default network 50-ether
|
||||
"10-ether-2_5G" = mylib.networking.mkStaticSystemdNetwork {
|
||||
@ -31,6 +32,26 @@
|
||||
# "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {...};
|
||||
};
|
||||
|
||||
# NetworkManager profiles
|
||||
profiles = {
|
||||
"10-ether-2_5G" = mylib.networking.mkStaticNetworkManagerProfile {
|
||||
id = "Wired 2.5G";
|
||||
interface = "enp8s0";
|
||||
ip = "192.168.86.50/24";
|
||||
router = "192.168.86.5";
|
||||
nameserver = "192.168.86.26";
|
||||
autoconnect = true;
|
||||
};
|
||||
"10-ether-1G" = mylib.networking.mkStaticNetworkManagerProfile {
|
||||
id = "Wired 1G";
|
||||
interface = "enp5s0";
|
||||
ip = "192.168.86.50/24";
|
||||
router = "192.168.86.5";
|
||||
nameserver = "192.168.86.26";
|
||||
autoconnect = false;
|
||||
};
|
||||
};
|
||||
|
||||
allowedTCPPorts = [
|
||||
# 7777 # AvaTalk
|
||||
# 12777 # AvaTalk
|
||||
|
Reference in New Issue
Block a user