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 + ]; }; }