feat: btop
This commit is contained in:
parent
7faa72dcd7
commit
a0fe695cbc
6 changed files with 34 additions and 9 deletions
|
@ -12,6 +12,7 @@ in {
|
|||
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
{
|
||||
programs = {
|
||||
btop = enabled;
|
||||
curl = enabled;
|
||||
fish = enabled;
|
||||
jq = enabled;
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./btop.nix
|
||||
./curl.nix
|
||||
./fish.nix
|
||||
./jq.nix
|
||||
|
|
|
@ -14,6 +14,7 @@ in {
|
|||
programs = {
|
||||
agenix = enabled;
|
||||
bat = enabled;
|
||||
btop = enabled;
|
||||
curl = enabled;
|
||||
eza = enabled;
|
||||
figlet = enabled;
|
||||
|
|
25
modules/home/programs/btop.nix
Normal file
25
modules/home/programs/btop.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
./agenix.nix
|
||||
./amfora
|
||||
./bat.nix
|
||||
./btop.nix
|
||||
./cheat.nix
|
||||
./curl.nix
|
||||
./eza.nix
|
||||
|
|
Loading…
Reference in a new issue