Only NetworkManager on desktops

This commit is contained in:
Casper V. Kristensen 2023-08-12 02:13:50 +02:00
parent 6d947db800
commit fadadea7bf
3 changed files with 17 additions and 5 deletions

View file

@ -1,14 +1,10 @@
{ lib, pkgs, ... }: {
{ ... }: {
networking = {
firewall = {
allowedTCPPorts = [ 1234 1337 8000 8080 ];
allowedUDPPorts = [ 1234 1337 8000 8080 ];
};
nameservers = [ "127.0.0.53" ]; # resolved stub resolver
networkmanager = {
enable = true;
dns = lib.mkForce "none";
};
};
# TODO: these systemd networkd settings will be the default once

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: {
imports = [
./firefox.nix
./network.nix
./ssh.nix
./sway.nix
];

View file

@ -0,0 +1,15 @@
{ lib, ... }: {
networking = {
networkmanager = {
enable = true;
dns = lib.mkForce "none";
};
};
# systemd-networkd-wait-online can timeout and fail if there are no
# network interfaces available for it to manage. When systemd-networkd is
# enabled but a different service is responsible for managing the systems
# internet connection (for example, NetworkManager), this service is unnecessary and can be disabled.
# https://search.nixos.org/options?channel=23.05&show=systemd.network.wait-online.enable
systemd.network.wait-online.enable = false;
}