diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-04-29 18:24:44 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-04-29 18:24:44 +0200 |
commit | 54960fc9f02457f8e5fedcc8d7b0ee0d07a646a9 (patch) | |
tree | bf55abeac790c198fb13fa6e9b5d9d27b95c1b16 | |
parent | 11878b4d1ec9b5282915ca7010065137b5650227 (diff) |
use network manager
-rw-r--r-- | mini/configuration.nix | 16 | ||||
-rw-r--r-- | neko/configuration.nix | 16 |
2 files changed, 8 insertions, 24 deletions
diff --git a/mini/configuration.nix b/mini/configuration.nix index 5210fdd..44881cc 100644 --- a/mini/configuration.nix +++ b/mini/configuration.nix @@ -17,18 +17,10 @@ # amd graphics hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ]; - # use systemd-networkd, fixed IPv4, dynamic IPv6 + # our hostname networking.hostName = "mini"; + + # use NetworkManager networking.useDHCP = false; - networking.nameservers = [ "192.168.13.1" ]; - 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"; - }; - }; + networking.networkmanager.enable = true; } diff --git a/neko/configuration.nix b/neko/configuration.nix index 3af0537..6e8d8e0 100644 --- a/neko/configuration.nix +++ b/neko/configuration.nix @@ -17,18 +17,10 @@ # intel graphics hardware.opengl.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ]; - # use systemd-networkd, fixed IPv4, dynamic IPv6 + # our hostname networking.hostName = "neko"; + + # use NetworkManager networking.useDHCP = false; - networking.nameservers = [ "192.168.13.1" ]; - 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"; - }; - }; + networking.networkmanager.enable = true; } |