blob: d2cb8de2fc86f8524b99f04bfa5747a9d8c72ac4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ 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
|