home: init gpg agent, move bat

This commit is contained in:
notohh 2023-05-21 16:49:26 -04:00
parent 82d36caf5f
commit 32ceb1262c
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 32 additions and 18 deletions

View file

@ -4,6 +4,7 @@ the home of my dotfiles, configured and managed by home-manager.
name | description name | description
--------------- | ----------- --------------- | -----------
`bat` | cat replacement
`btop` | system monitor program `btop` | system monitor program
`direnv` | a shell extension, that loads environment variables in certain directories `direnv` | a shell extension, that loads environment variables in certain directories
`default` | used for commonly shared modules, for multiple home-manager configs `default` | used for commonly shared modules, for multiple home-manager configs

22
home/bat/default.nix Normal file
View file

@ -0,0 +1,22 @@
{
pkgs,
...
}: {
programs.bat = {
enable = true;
config = {
theme = "catppuccin-mocha";
};
themes = {
catppuccin-mocha = builtins.readFile (pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
}
+ "/Catppuccin-mocha.tmTheme");
};
};
}

View file

@ -9,6 +9,7 @@
./lf ./lf
./direnv ./direnv
./btop ./btop
./bat
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -18,9 +19,15 @@
lazydocker lazydocker
yt-dlp yt-dlp
nfs-utils nfs-utils
pinentry-curses
]; ];
services.gpg-agent = {
enable = true;
defaultCacheTtl = 3600;
pinentryFlavor = "gtk2";
enableSshSupport = true;
};
programs.ssh = { programs.ssh = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
@ -41,23 +48,7 @@
''; '';
}; };
programs.bat = { programs.zoxide = {
enable = true;
config = {
theme = "catppuccin-mocha";
};
themes = {
catppuccin-mocha = builtins.readFile (pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
}
+ "/Catppuccin-mocha.tmTheme");
};
};
programs.zoxide = {
enable = true; enable = true;
enableNushellIntegration = true; enableNushellIntegration = true;
options = [ options = [