Cope with the current alacritty

This commit is contained in:
Natsu Kagami 2022-04-27 14:20:22 -04:00
parent e000d58df4
commit 77dcc187f5
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 22 additions and 3 deletions

View file

@ -9,6 +9,11 @@ with lib; {
};
services.gpg-agent.enable = true;
services.gpg-agent.pinentryFlavor = "gnome3";
# Git "safe-directory"
programs.git.extraConfig.safe.directory = [
"${config.home.homeDirectory}/.config/nixpkgs"
];
});
}

View file

@ -1,13 +1,27 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.linux.graphical.alacritty;
in
{
programs.alacritty = mkIf (config.linux.graphical.type != null) {
options.linux.graphical.alacritty = {
enable = mkOption {
type = types.bool;
default = true;
};
package = mkOption {
type = types.package;
default = pkgs.alacritty;
};
};
config.programs.alacritty = mkIf (config.linux.graphical.type != null && cfg.enable) {
enable = true;
package = pkgs.unstable.alacritty;
package = cfg.package;
settings = {
window.opacity = 0.8;
window.opacity = mkIf (strings.hasPrefix "0.10" cfg.package.version) 0.9;
background_opacity = mkIf (strings.hasPrefix "0.9" cfg.package.version) 0.9;
font = {
size = 14.0;
normal.family = "Fantasque Sans Mono Nerd Font";