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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{
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;
@ -24,6 +25,8 @@ in {
journalctl = enabled;
jq = enabled;
just = enabled;
lazydocker = enabled;
lazygit = enabled;
less = enabled;
man = enabled;
nh = enabled;
@ -43,10 +46,13 @@ in {
shell.niri = enabled;
programs = {
amfora = enabled;
cava = enabled;
cheat = enabled;
fzf = enabled;
gh = enabled;
glow = enabled;
jqp = enabled;
nemo = enabled;
neo = enabled;
neovim = enabled;

View file

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

View file

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

View file

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

View file

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

View file

@ -129,6 +129,14 @@ in {
command = "git commit --message '{{.Form.Type}}{{ if .Form.Scope }}({{ .Form.Scope }}){{ end }}{{.Form.Breaking}}: {{.Form.Message}}'";
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";
}
];
};
};