Only NetworkManager on desktops
This commit is contained in:
parent
6d947db800
commit
fadadea7bf
3 changed files with 17 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./network.nix
|
||||
./ssh.nix
|
||||
./sway.nix
|
||||
];
|
||||
|
|
15
modules/desktop/network.nix
Normal file
15
modules/desktop/network.nix
Normal 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 system’s
|
||||
# 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;
|
||||
}
|
Loading…
Reference in a new issue