tvl-depot/users/Profpatsch/alacritty.nix
Profpatsch fd519c825f feat(users/Profpatsch): Basic alacritty dhall configuration
Change-Id: I73e91a0abeec013445d0b14867e38637b2a9397f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5334
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
2022-02-28 14:32:27 +00:00

29 lines
538 B
Nix

{ depot, pkgs, lib, ... }:
let
bins = depot.nix.getBins pkgs.alacritty [ "alacritty" ];
config = lib.pipe { } [
(_: depot.users.Profpatsch.importDhall.importDhall {
root = ./.;
files = [
"alacritty.dhall"
"solarized.dhall"
];
main = "alacritty.dhall";
deps = [ ];
})
(lib.generators.toYAML { })
(pkgs.writeText "alacritty.conf")
];
alacritty = depot.nix.writeExecline "alacritty" { } [
bins.alacritty
"--config-file"
config
"$@"
];
in
alacritty