diff --git a/hosts/chmura/configuration.nix b/hosts/chmura/configuration.nix index 67030e2..31ad925 100644 --- a/hosts/chmura/configuration.nix +++ b/hosts/chmura/configuration.nix @@ -61,7 +61,6 @@ in { defaultBranch = "master"; }; zsh.enable = true; - btop.enable = true; neovim = { enable = true; enableLsp = false; diff --git a/hosts/common/core/btop.nix b/hosts/common/core/btop.nix new file mode 100644 index 0000000..dba5975 --- /dev/null +++ b/hosts/common/core/btop.nix @@ -0,0 +1,23 @@ +{ + config, + ... +}: let + inherit (config.poz.other.system) username; +in { + home-manager.users.${username} = { + programs.btop = { + enable = true; + settings = { + theme_background = false; + vim_keys = true; + update_ms = 1000; + cpu_single_graph = true; + clock_format = "%X"; + use_fstab = true; + io_mode = true; + net_sync = true; + log_level = "WARNING"; + }; + }; + }; +} diff --git a/hosts/common/core/default.nix b/hosts/common/core/default.nix index f855c0b..2c3edff 100644 --- a/hosts/common/core/default.nix +++ b/hosts/common/core/default.nix @@ -2,6 +2,7 @@ _: { imports = [ ./agenix.nix ./binary-caches.nix + ./btop.nix ./dash.nix ./dbus.nix ./disable-nano.nix diff --git a/hosts/del/configuration.nix b/hosts/del/configuration.nix index 81631cd..a60eb76 100644 --- a/hosts/del/configuration.nix +++ b/hosts/del/configuration.nix @@ -121,7 +121,6 @@ in { }; anyrun.enable = true; vesktop.enable = true; - btop.enable = true; foot.enable = true; mpv.enable = true; neovim = { diff --git a/hosts/hape/configuration.nix b/hosts/hape/configuration.nix index e5ef3ff..9a443c0 100644 --- a/hosts/hape/configuration.nix +++ b/hosts/hape/configuration.nix @@ -36,7 +36,6 @@ profiling = false; }; anyrun.enable = true; - btop.enable = true; foot.enable = true; mpv.enable = true; neovim.enable = true; diff --git a/hosts/niks/configuration.nix b/hosts/niks/configuration.nix index 8a9fe15..0eab646 100644 --- a/hosts/niks/configuration.nix +++ b/hosts/niks/configuration.nix @@ -77,7 +77,6 @@ in { }; anyrun.enable = true; vesktop.enable = true; - btop.enable = true; foot.enable = true; mpv = { enable = true; diff --git a/hosts/work/configuration.nix b/hosts/work/configuration.nix index 1b83bd6..995e41f 100644 --- a/hosts/work/configuration.nix +++ b/hosts/work/configuration.nix @@ -74,7 +74,6 @@ in { profiling = false; }; anyrun.enable = true; - btop.enable = true; foot.enable = true; mpv.enable = true; neovim = { diff --git a/modules/tui/btop.nix b/modules/tui/btop.nix deleted file mode 100644 index 7318b01..0000000 --- a/modules/tui/btop.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - config, - lib, - ... -}: let - cfg = config.poz.programs.btop; - inherit (config.poz.other.system) username; - - inherit (lib.modules) mkIf; - inherit (lib.options) mkEnableOption; -in { - options.poz.programs.btop.enable = mkEnableOption "btop"; - - config = mkIf cfg.enable { - home-manager.users.${username} = { - programs.btop = { - enable = true; - settings = { - theme_background = false; - vim_keys = true; - update_ms = 1000; - cpu_single_graph = true; - clock_format = "%X"; - use_fstab = true; - io_mode = true; - net_sync = true; - net_iface = "enp4s0"; - log_level = "WARNING"; - }; - }; - }; - }; -} diff --git a/modules/tui/default.nix b/modules/tui/default.nix index e845d80..14737a2 100644 --- a/modules/tui/default.nix +++ b/modules/tui/default.nix @@ -1,7 +1,6 @@ _: { imports = [ ./neovim - ./btop.nix ./helix.nix ./newsboat.nix ];