feat: btop

This commit is contained in:
punkfairie 2025-05-31 14:12:27 -07:00
parent 7faa72dcd7
commit a0fe695cbc
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
6 changed files with 34 additions and 9 deletions

View file

@ -12,6 +12,7 @@ in {
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{ {
programs = { programs = {
btop = enabled;
curl = enabled; curl = enabled;
fish = enabled; fish = enabled;
jq = enabled; jq = enabled;

View file

@ -1,6 +1,7 @@
{ {
lib,
config, config,
lib,
pkgs,
... ...
}: let }: let
cfg = config.marleyos.programs.btop; cfg = config.marleyos.programs.btop;
@ -8,13 +9,8 @@ in {
options.marleyos.programs.btop.enable = lib.mkEnableOption "btop"; options.marleyos.programs.btop.enable = lib.mkEnableOption "btop";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.btop = { environment.systemPackages = with pkgs; [
enable = true; btop
];
settings = {
truecolor = true;
vim_keys = true;
};
};
}; };
} }

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./btop.nix
./curl.nix ./curl.nix
./fish.nix ./fish.nix
./jq.nix ./jq.nix

View file

@ -14,6 +14,7 @@ in {
programs = { programs = {
agenix = enabled; agenix = enabled;
bat = enabled; bat = enabled;
btop = enabled;
curl = enabled; curl = enabled;
eza = enabled; eza = enabled;
figlet = enabled; figlet = enabled;

View file

@ -0,0 +1,25 @@
{
marleylib,
lib,
config,
osConfig,
...
}: let
inherit (marleylib.module) mkEnableOption';
cfg = config.marleyos.programs.btop;
osCfg = osConfig.marleyos.programs.btop;
in {
options.marleyos.programs.btop.enable = mkEnableOption' "btop" osCfg.enable;
config = lib.mkIf cfg.enable {
programs.btop = {
enable = true;
settings = {
truecolor = true;
vim_keys = true;
};
};
};
}

View file

@ -3,6 +3,7 @@
./agenix.nix ./agenix.nix
./amfora ./amfora
./bat.nix ./bat.nix
./btop.nix
./cheat.nix ./cheat.nix
./curl.nix ./curl.nix
./eza.nix ./eza.nix