~vonfry/dotfiles

79733f3a5d3ebae0f7edef257448e2d079a8e11d — Vonfry 7 months ago e5d7b1f
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.
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
@@ 10,7 10,7 @@ let
      isNormalUser = true;
      home = "/home/vonfry";
      description = "Vonfry";
      extraGroups = [ "wheel" "libvirtd" "networkmanager" ];
      extraGroups = [ "wheel" "libvirtd" ];
      shell = pkgs.bash;
    };