From fb6d7df0e770f1bfcb41b84a0814a298deac9d4e Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 20 Jan 2024 20:24:23 -0700 Subject: [PATCH] configs/alacritty: remove complications and make sure font exists --- configs/alacritty.nix | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/configs/alacritty.nix b/configs/alacritty.nix index 5c7c864..5780973 100644 --- a/configs/alacritty.nix +++ b/configs/alacritty.nix @@ -17,30 +17,16 @@ let }; 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 = { "xdg/alacritty/alacritty.toml".text = builtins.readFile settingsFile; }; }; + fontSet = with pkgs; [ + go-font + ]; }; }