Add gitui with vim-style keybinds and catppuccin theme

This commit is contained in:
Evie Litherland-Smith 2023-07-17 09:12:26 +01:00
parent 1bafd48306
commit 76b0ce23cb
3 changed files with 21 additions and 5 deletions

View file

@ -2,13 +2,9 @@
test: test:
sudo nixos-rebuild test --flake . sudo nixos-rebuild test --flake .
make hyprland
make waybar
switch: switch:
sudo nixos-rebuild switch --flake . sudo nixos-rebuild switch --flake .
make hyprland
make waybar
build: build:
sudo nixos-rebuild build --flake . sudo nixos-rebuild build --flake .
@ -30,4 +26,4 @@ waybar:
-hyprctl dispatch exec waybar -hyprctl dispatch exec waybar
home: home:
home-manager switch --flake . nix run nixpkgs#home-manager switch --flake .

View file

@ -1,4 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./gitui.nix];
home.packages = with pkgs; [ home.packages = with pkgs; [
curl curl
dig dig

19
home/tui/gitui.nix Normal file
View file

@ -0,0 +1,19 @@
{pkgs, ...}: {
programs.gitui = {
enable = true;
keyConfig = builtins.readFile (pkgs.fetchFromGitHub {
owner = "extrawurst";
repo = "gitui";
rev = "8f7f35b8a97e38a0e181032285554cd0961d588e";
sha256 = "sha256-zJDf6WhaUe8QTPCoVAdfCdUvYEcQpm2qddQiKw41kjY=";
}
+ "/vim_style_key_config.ron");
theme = builtins.readFile (pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "gitui";
rev = "3c97c7af7247b1e0f4366a4d8fab650bcce54100";
sha256 = "sha256-m6Tjch6A2ZPZ3/muvb/9sEAQUZfjnWqcwyhNVeqPS2c=";
}
+ "/theme/macchiato.ron");
};
}