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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{
programs = {
btop = enabled;
curl = enabled;
fish = enabled;
jq = enabled;

View file

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

View file

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

View file

@ -14,6 +14,7 @@ in {
programs = {
agenix = enabled;
bat = enabled;
btop = enabled;
curl = enabled;
eza = 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
./amfora
./bat.nix
./btop.nix
./cheat.nix
./curl.nix
./eza.nix