23 lines
801 B
Nix
23 lines
801 B
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ config, pkgs, lib, inputs, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
../types/server.nix
|
||
];
|
||
config = lib.mkMerge [
|
||
{networking.interfaces.enp0s31f6.useDHCP = true;}
|
||
#{networking.interfaces.enp0s31f6.ipv4.addresses = [ address = "172.16.1.251"; prefixLength = 12; }]}
|
||
#(iface.bridge "lan0" "172.16.1.251/12" "172.16.1.1" "phy0" "50:9a:4c:49:cc:1b")
|
||
#(iface.dhcp "phy1" "98:b7:85:01:36:ec")
|
||
#(iface.dhcp "phy2" "98:b7:85:01:36:ed")
|
||
#(iface.dhcp "phy3" "98:b7:85:01:36:ee")
|
||
#(iface.dhcp "phy4" "98:b7:85:01:36:ef")
|
||
];
|
||
|
||
}
|