remove network manager and use the nixos builtin manual config. Because my desktop usually use the fixed network environment, network manager is useless and heavy.
3 files changed, 2 insertions(+), 7 deletions(-) M etc/nixos/configuration.nix.example M etc/nixos/modules/network.nix M etc/nixos/modules/user/default.nix
M etc/nixos/configuration.nix.example => etc/nixos/configuration.nix.example +0 -1
@@ 69,7 69,6 @@ # }; # networking.hostName = "nixos"; # Define your hostname. # networking.networkmanager.enable = false; # networking.hosts = { # };
M etc/nixos/modules/network.nix => etc/nixos/modules/network.nix +1 -5
@@ 4,7 4,7 @@ with lib; let cfg = config.vonfry; in { config = mkIf config.vonfry.enable { config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ curl ]; @@ networking = { 16,10 16,6 @@ in { allowPing = mkDefault false; extraPackages = with pkgs; [ ]; }; networkmanager = { enable = mkDefault (!cfg.workspace.server); dhcp = "internal"; }; }; }; }
M etc/nixos/modules/user/default.nix => etc/nixos/modules/user/default.nix +1 -1