From 81fd6c231e12dca96665d42226cae449957188bb Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Mon, 11 Mar 2024 15:38:07 -0500 Subject: [PATCH] remove zeroad package unless enabled and nvtop is only enabled if nvidia is used --- config/home/packages.nix | 4 ++-- config/system/intel-nvidia.nix | 3 +++ config/system/nvidia.nix | 3 +++ config/system/packages.nix | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/config/home/packages.nix b/config/home/packages.nix index abf9319..69c798f 100644 --- a/config/home/packages.nix +++ b/config/home/packages.nix @@ -8,8 +8,8 @@ in { home.packages = with pkgs; [ pkgs."${browser}" discord libvirt swww grim slurp gnome.file-roller swaynotificationcenter rofi-wayland imv transmission-gtk mpv - gimp obs-studio rustup audacity pavucontrol tree zeroad protonup-qt - font-awesome spotify swayidle neovide element-desktop swaylock + gimp obs-studio rustup audacity pavucontrol tree protonup-qt + font-awesome spotify swayidle neovide swaylock (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) # Import Scripts (import ./../scripts/emopicker9000.nix { inherit pkgs; }) diff --git a/config/system/intel-nvidia.nix b/config/system/intel-nvidia.nix index a2b2432..fe4cbc4 100644 --- a/config/system/intel-nvidia.nix +++ b/config/system/intel-nvidia.nix @@ -8,6 +8,9 @@ lib.mkIf ("${gpuType}" == "intel-nvidia") { enableHybridCodec = true; }; }; + environment.systemPackages = with pkgs; [ + nvtop + ]; # OpenGL hardware.opengl = { extraPackages = with pkgs; [ diff --git a/config/system/nvidia.nix b/config/system/nvidia.nix index 52fcf89..0ab56bf 100644 --- a/config/system/nvidia.nix +++ b/config/system/nvidia.nix @@ -2,6 +2,9 @@ let inherit (import ../../options.nix) gpuType; in lib.mkIf ("${gpuType}" == "nvidia") { + environment.systemPackages = with pkgs; [ + nvtop + ]; services.xserver.videoDrivers = ["nvidia"]; hardware.nvidia = { # Modesetting is required. diff --git a/config/system/packages.nix b/config/system/packages.nix index 07d4c3d..52f2698 100644 --- a/config/system/packages.nix +++ b/config/system/packages.nix @@ -12,7 +12,7 @@ pkg-config meson hugo gnumake ninja go nodejs symbola noto-fonts-color-emoji material-icons brightnessctl toybox virt-viewer swappy ripgrep appimage-run - networkmanagerapplet yad playerctl nh nvtop + networkmanagerapplet yad playerctl nh ]; programs = {