2022-02-27 19:48:22 +01:00
|
|
|
{ depot, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
2022-04-21 11:33:45 +02:00
|
|
|
bins = depot.nix.getBins pkgs.alacritty-stable [ "alacritty" ];
|
2022-02-27 19:48:22 +01:00
|
|
|
|
2022-04-19 15:08:14 +02:00
|
|
|
config =
|
|
|
|
depot.users.Profpatsch.importDhall.importDhall {
|
2022-02-27 19:48:22 +01:00
|
|
|
root = ./.;
|
|
|
|
files = [
|
|
|
|
"alacritty.dhall"
|
|
|
|
"solarized.dhall"
|
|
|
|
];
|
|
|
|
main = "alacritty.dhall";
|
|
|
|
deps = [ ];
|
2022-04-19 15:08:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config-file = lib.pipe config.alacritty-config [
|
2022-02-27 19:48:22 +01:00
|
|
|
(lib.generators.toYAML { })
|
|
|
|
(pkgs.writeText "alacritty.conf")
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2022-04-19 15:08:14 +02:00
|
|
|
alacritty = depot.nix.writeExecline "alacritty" { } (
|
|
|
|
(lib.concatLists (lib.mapAttrsToList (k: v: [ "export" k (toString v) ]) config.alacritty-env))
|
|
|
|
++ [
|
|
|
|
bins.alacritty
|
|
|
|
"--config-file"
|
|
|
|
config-file
|
|
|
|
"$@"
|
|
|
|
]
|
|
|
|
);
|
2022-02-27 19:48:22 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
alacritty
|