Compare commits
6 commits
6a43ef3bd9
...
4a6f1a035e
Author | SHA1 | Date | |
---|---|---|---|
4a6f1a035e | |||
a0dff23259 | |||
53eee10dc1 | |||
7855b51297 | |||
a0fe695cbc | |||
7faa72dcd7 |
12 changed files with 61 additions and 20 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;
|
||||||
|
@ -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;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.programs.amfora;
|
cfg = config.marleyos.programs.amfora;
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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";
|
||||||
};
|
};
|
|
@ -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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
|
@ -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";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
Loading…
Reference in a new issue