home: init gpg agent, move bat
This commit is contained in:
parent
82d36caf5f
commit
32ceb1262c
3 changed files with 32 additions and 18 deletions
|
@ -4,6 +4,7 @@ the home of my dotfiles, configured and managed by home-manager.
|
|||
|
||||
name | description
|
||||
--------------- | -----------
|
||||
`bat` | cat replacement
|
||||
`btop` | system monitor program
|
||||
`direnv` | a shell extension, that loads environment variables in certain directories
|
||||
`default` | used for commonly shared modules, for multiple home-manager configs
|
||||
|
|
22
home/bat/default.nix
Normal file
22
home/bat/default.nix
Normal 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");
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -9,6 +9,7 @@
|
|||
./lf
|
||||
./direnv
|
||||
./btop
|
||||
./bat
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
@ -18,9 +19,15 @@
|
|||
lazydocker
|
||||
yt-dlp
|
||||
nfs-utils
|
||||
pinentry-curses
|
||||
];
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 3600;
|
||||
pinentryFlavor = "gtk2";
|
||||
enableSshSupport = true;
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
|
@ -41,22 +48,6 @@
|
|||
'';
|
||||
};
|
||||
|
||||
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");
|
||||
};
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
|
|
Loading…
Reference in a new issue