Merge branch 'alacritty'

This commit is contained in:
Aaron Bieber 2024-01-19 11:12:12 -07:00
commit c36a4bd341
No known key found for this signature in database
4 changed files with 49 additions and 0 deletions

46
configs/alacritty.nix Normal file
View File

@ -0,0 +1,46 @@
{ pkgs, ... }:
let
settings = {
font = {
normal = {
family = "Go Mono";
};
size = 6;
};
colors = {
primary = {
background = "#ffffea";
foreground = "#000000";
};
};
};
settingsFormat = pkgs.formats.toml { };
settingsFile = settingsFormat.generate "alacritty.toml" settings;
script = pkgs.writeScriptBin "alacritty-etc" ''
${pkgs.alacritty}/bin/alacritty --config-file ${settingsFile}
'';
in
{
config = {
nixpkgs.overlays = [
(self: super: {
alacritty = super.alacritty.overrideAttrs (old: {
postInstall = old.postInstall + ''
${super.gnused}/bin/sed -i 's#^Exec=alacritty#Exec=alacritty --config-file ${settingsFile}#g' \
extra/linux/Alacritty.desktop
install -D extra/linux/Alacritty.desktop -t $out/share/applications/
'';
});
})
];
environment = {
systemPackages = [
script
];
etc = {
" alacritty/alacritty.toml ".text = builtins.readFile settingsFile;
};
};
};
}

View File

@ -1,5 +1,6 @@
{ ... }: { { ... }: {
imports = [ imports = [
./alacritty.nix
./ca.nix ./ca.nix
./ci.nix ./ci.nix
./colemak.nix ./colemak.nix

View File

@ -102,6 +102,7 @@ with lib; {
SSH_AUTH_SOCK = "$HOME/.traygent"; SSH_AUTH_SOCK = "$HOME/.traygent";
}; };
systemPackages = with pkgs; (xinlib.filterList [ systemPackages = with pkgs; (xinlib.filterList [
alacritty
bc bc
beyt beyt
black black

View File

@ -36,6 +36,7 @@ in
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty
direwolf direwolf
polybar polybar
python3Packages.nomadnet python3Packages.nomadnet