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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
btop = enabled;
|
||||||
curl = enabled;
|
curl = enabled;
|
||||||
fish = enabled;
|
fish = enabled;
|
||||||
jq = enabled;
|
jq = enabled;
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./btop.nix
|
||||||
./curl.nix
|
./curl.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./jq.nix
|
./jq.nix
|
||||||
|
|
|
@ -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;
|
||||||
|
|
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
|
./agenix.nix
|
||||||
./amfora
|
./amfora
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
./btop.nix
|
||||||
./cheat.nix
|
./cheat.nix
|
||||||
./curl.nix
|
./curl.nix
|
||||||
./eza.nix
|
./eza.nix
|
||||||
|
|
Loading…
Reference in a new issue