From 65ffb35fd064ebf027471cbb068ad973aba36e73 Mon Sep 17 00:00:00 2001 From: smayzy Date: Wed, 27 Aug 2025 14:35:27 +0200 Subject: [PATCH] remove network manager from server and desktop and only enable it on laptop --- modules/nix/default.nix | 2 -- modules/nix/groups/laptop.nix | 4 +++- modules/nix/utilities/gui-utilities.nix | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 04e3cc9..b4c3c19 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -55,6 +55,4 @@ "nix-command" "flakes" ]; - - networking.networkmanager.enable = true; } diff --git a/modules/nix/groups/laptop.nix b/modules/nix/groups/laptop.nix index aa58f6f..b6c5d97 100644 --- a/modules/nix/groups/laptop.nix +++ b/modules/nix/groups/laptop.nix @@ -1,4 +1,4 @@ -{ lib, config, ... }: +{ lib, pkgs, config, ... }: let inherit (lib) mkIf mkOption types; in @@ -49,5 +49,7 @@ in wireshark.enable = true; bitwarden.enable = true; }; + networking.networkmanager.enable = true; + environment.systemPackages = with pkgs; [ networkmanagerapplet ]; }; } diff --git a/modules/nix/utilities/gui-utilities.nix b/modules/nix/utilities/gui-utilities.nix index befea8f..d15bc8c 100644 --- a/modules/nix/utilities/gui-utilities.nix +++ b/modules/nix/utilities/gui-utilities.nix @@ -21,7 +21,6 @@ in loupe gimp3 audacity - networkmanagerapplet gparted gnome-disk-utility vlc