gitu: init
This commit is contained in:
parent
90ea61ed1d
commit
73906f8f95
2 changed files with 55 additions and 0 deletions
35
home-manager/modules/gitu/default.nix
Normal file
35
home-manager/modules/gitu/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue