use network manager
This commit is contained in:
parent
11878b4d1e
commit
54960fc9f0
|
@ -17,18 +17,10 @@
|
||||||
# amd graphics
|
# amd graphics
|
||||||
hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
|
hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
|
||||||
|
|
||||||
# use systemd-networkd, fixed IPv4, dynamic IPv6
|
# our hostname
|
||||||
networking.hostName = "mini";
|
networking.hostName = "mini";
|
||||||
|
|
||||||
|
# use NetworkManager
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.nameservers = [ "192.168.13.1" ];
|
networking.networkmanager.enable = true;
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks."10-wan" = {
|
|
||||||
matchConfig.Name = "eno1";
|
|
||||||
address = [ "192.168.13.100/24" ];
|
|
||||||
routes = [ { routeConfig.Gateway = "192.168.13.1"; } ];
|
|
||||||
networkConfig.IPv6AcceptRA = true;
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,18 +17,10 @@
|
||||||
# intel graphics
|
# intel graphics
|
||||||
hardware.opengl.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
|
hardware.opengl.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
|
||||||
|
|
||||||
# use systemd-networkd, fixed IPv4, dynamic IPv6
|
# our hostname
|
||||||
networking.hostName = "neko";
|
networking.hostName = "neko";
|
||||||
|
|
||||||
|
# use NetworkManager
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.nameservers = [ "192.168.13.1" ];
|
networking.networkmanager.enable = true;
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks."10-wan" = {
|
|
||||||
matchConfig.Name = "enp10s0";
|
|
||||||
address = [ "192.168.13.171/24" ];
|
|
||||||
routes = [ { routeConfig.Gateway = "192.168.13.1"; } ];
|
|
||||||
networkConfig.IPv6AcceptRA = true;
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue