7406e95954
I figured out that the problem came from me installing alacritty in my home profile, which was out of sync with my system closure’s opengl. Updating the home profile “fixed” it. Change-Id: I1e2b3a91da9a3ab8c47182e0e0a8e69b9285c75b Reviewed-on: https://cl.tvl.fyi/c/depot/+/5522 Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
34 lines
699 B
Nix
34 lines
699 B
Nix
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
bins = depot.nix.getBins pkgs.alacritty [ "alacritty" ];
|
|
|
|
config =
|
|
depot.users.Profpatsch.importDhall.importDhall {
|
|
root = ./.;
|
|
files = [
|
|
"alacritty.dhall"
|
|
"solarized.dhall"
|
|
];
|
|
main = "alacritty.dhall";
|
|
deps = [ ];
|
|
};
|
|
|
|
config-file = lib.pipe config.alacritty-config [
|
|
(lib.generators.toYAML { })
|
|
(pkgs.writeText "alacritty.conf")
|
|
];
|
|
|
|
|
|
alacritty = depot.nix.writeExecline "alacritty" { } (
|
|
(lib.concatLists (lib.mapAttrsToList (k: v: [ "export" k (toString v) ]) config.alacritty-env))
|
|
++ [
|
|
bins.alacritty
|
|
"--config-file"
|
|
config-file
|
|
"$@"
|
|
]
|
|
);
|
|
|
|
in
|
|
alacritty
|