Compare commits

...

6 commits

Author SHA1 Message Date
4a6f1a035e
feat: lazygit 2025-05-31 14:31:35 -07:00
a0dff23259
feat: lazydocker 2025-05-31 14:29:28 -07:00
53eee10dc1
feat: jqp 2025-05-31 14:29:28 -07:00
7855b51297
feat: cava 2025-05-31 14:29:27 -07:00
a0fe695cbc
feat: btop 2025-05-31 14:12:27 -07:00
7faa72dcd7
feat: amfora 2025-05-31 14:09:22 -07:00
12 changed files with 61 additions and 20 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;
@ -24,6 +25,8 @@ in {
journalctl = enabled; journalctl = enabled;
jq = enabled; jq = enabled;
just = enabled; just = enabled;
lazydocker = enabled;
lazygit = enabled;
less = enabled; less = enabled;
man = enabled; man = enabled;
nh = enabled; nh = enabled;
@ -43,10 +46,13 @@ in {
shell.niri = enabled; shell.niri = enabled;
programs = { programs = {
amfora = enabled;
cava = enabled;
cheat = enabled; cheat = enabled;
fzf = enabled; fzf = enabled;
gh = enabled; gh = enabled;
glow = enabled; glow = enabled;
jqp = enabled;
nemo = enabled; nemo = enabled;
neo = enabled; neo = enabled;
neovim = enabled; neovim = enabled;

View file

@ -2,7 +2,6 @@
lib, lib,
config, config,
pkgs, pkgs,
inputs,
... ...
}: let }: let
cfg = config.marleyos.programs.amfora; cfg = config.marleyos.programs.amfora;

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

@ -1,22 +1,21 @@
{ {
lib,
config, config,
osConfig,
lib,
pkgs,
... ...
}: let }: let
cfg = config.marleyos.programs.cava; cfg = config.marleyos.programs.cava;
has-mpd = osConfig.services.mpd.enable || config.services.mpd.enable;
in { in {
options.marleyos.programs.cava.enable = lib.mkEnableOption "cava"; options.marleyos.programs.cava.enable = lib.mkEnableOption "cava";
config = lib.mkIf cfg.enable { config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
programs.cava = { programs.cava = {
# FIX: Re-enable once https://github.com/NixOS/nixpkgs/pull/355948 is enable = true;
# ported to nixpkgs/unstable
enable = false;
# TODO: disable this when mpd is not enabled? Can that be detected on non
# NixOS systems?
settings = { settings = {
input = { input = lib.mkIf has-mpd {
method = "fifo"; method = "fifo";
source = "/tmp/mpd.fifo"; source = "/tmp/mpd.fifo";
}; };

View file

@ -1,7 +1,10 @@
{ {
imports = [ imports = [
./agenix.nix ./agenix.nix
./amfora
./bat.nix ./bat.nix
./btop.nix
./cava.nix
./cheat.nix ./cheat.nix
./curl.nix ./curl.nix
./eza.nix ./eza.nix
@ -17,7 +20,10 @@
./hyfetch ./hyfetch
./journalctl.nix ./journalctl.nix
./jq.nix ./jq.nix
./jqp.nix
./just.nix ./just.nix
./lazydocker.nix
./lazygit.nix
./less.nix ./less.nix
./man.nix ./man.nix
./nemo.nix ./nemo.nix

View file

@ -1,6 +1,6 @@
{ {
lib,
config, config,
lib,
pkgs, pkgs,
... ...
}: let }: let

View file

@ -1,6 +1,6 @@
{ {
lib,
config, config,
lib,
pkgs, pkgs,
... ...
}: let }: let

View file

@ -129,6 +129,14 @@ in {
command = "git commit --message '{{.Form.Type}}{{ if .Form.Scope }}({{ .Form.Scope }}){{ end }}{{.Form.Breaking}}: {{.Form.Message}}'"; command = "git commit --message '{{.Form.Type}}{{ if .Form.Scope }}({{ .Form.Scope }}){{ end }}{{.Form.Breaking}}: {{.Form.Message}}'";
loadingText = "Creating conventional commit..."; loadingText = "Creating conventional commit...";
} }
{
key = "P";
context = "commits";
description = "Push a specific commit (and any preceding)";
command = "git push {{.SelectedRemote.Name}} {{.SelectedLocalCommit.Sha}}:{{.SelectedLocalBranch.Name}}";
loadingText = "Pushing commit...";
stream = "yes";
}
]; ];
}; };
}; };