gitu: init

This commit is contained in:
Erwin Boskma 2024-09-10 19:26:50 +02:00
parent 90ea61ed1d
commit 73906f8f95
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.programs.gitu;
settingsFormat = pkgs.formats.toml { };
gituConfig = types.submodule {
freeformType = settingsFormat.type;
};
in
{
options.eboskma.programs.gitu = {
enable = mkEnableOption "gitu";
settings = mkOption {
description = "Gitu config according to https://github.com/altsem/gitu/blob/master/src/default_config.toml";
default = { };
type = gituConfig;
};
};
config = mkIf cfg.enable {
xdg.configFile.gitu = {
target = "gitu/config.toml";
source = settingsFormat.generate "config.toml" cfg.settings;
};
home.packages = [ pkgs.gitu ];
};
}

View file

@ -61,6 +61,26 @@ in
signingKey = "~/.ssh/id_ed25519_sk_personal.pub";
signingKeyFormat = "ssh";
};
gitu = {
enable = true;
settings = {
bindings = {
root = {
move_down = [
"n"
"<down>"
];
move_up = [
"p"
"<up>"
];
half_page_down = [ "<ctrl+v>" ];
half_page_up = [ "<alt+v>" ];
discard = [ "k" ];
};
};
};
};
gpg.enable = true;
mpd.enable = true;
neovim.enable = true;