commit e873a147c25cfe391da7c243a26d23c6869d7e92
parent 9477166ddc540153277c36b144937d8b1d8f308a
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 12 May 2023 16:24:14 +0200
parent 9477166ddc540153277c36b144937d8b1d8f308a
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 12 May 2023 16:24:14 +0200
configurations/common/programms/htop: add sensors support
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/configurations/common/programs/htop.nix b/configurations/common/programs/htop.nix @@ -1,10 +1,18 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { home-manager.users.leah = { programs = { htop = { enable = true; + package = ( + if pkgs.stdenv.isDarwin then + pkgs.htop + else + pkgs.htop.override { + sensorsSupport = true; + } + ); settings = { hide_userland_threads = 1; tree_view = 1; @@ -15,7 +23,9 @@ }; xdg = ( - if pkgs.stdenv.isLinux then + if pkgs.stdenv.isDarwin then + {} + else { desktopEntries = { htop = { @@ -31,8 +41,6 @@ }; }; } - else - {} ); };