move btop to hosts/common

This commit is contained in:
jacekpoz 2024-10-03 18:03:57 +02:00
parent be97c833bc
commit 4c8ee9efd2
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
9 changed files with 24 additions and 39 deletions

View file

@ -61,7 +61,6 @@ in {
defaultBranch = "master";
};
zsh.enable = true;
btop.enable = true;
neovim = {
enable = true;
enableLsp = false;

View file

@ -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";
};
};
};
}

View file

@ -2,6 +2,7 @@ _: {
imports = [
./agenix.nix
./binary-caches.nix
./btop.nix
./dash.nix
./dbus.nix
./disable-nano.nix

View file

@ -121,7 +121,6 @@ in {
};
anyrun.enable = true;
vesktop.enable = true;
btop.enable = true;
foot.enable = true;
mpv.enable = true;
neovim = {

View file

@ -36,7 +36,6 @@
profiling = false;
};
anyrun.enable = true;
btop.enable = true;
foot.enable = true;
mpv.enable = true;
neovim.enable = true;

View file

@ -77,7 +77,6 @@ in {
};
anyrun.enable = true;
vesktop.enable = true;
btop.enable = true;
foot.enable = true;
mpv = {
enable = true;

View file

@ -74,7 +74,6 @@ in {
profiling = false;
};
anyrun.enable = true;
btop.enable = true;
foot.enable = true;
mpv.enable = true;
neovim = {

View file

@ -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";
};
};
};
};
}

View file

@ -1,7 +1,6 @@
_: {
imports = [
./neovim
./btop.nix
./helix.nix
./newsboat.nix
];