feat(users/Profpatsch/alacritty): Some more configuration
Change-Id: Ibb2e1892327bd1f27a16dcde1424b8d55c7783d2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5479 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
70779f4e65
commit
ea871fdcd7
2 changed files with 28 additions and 12 deletions
|
|
@ -3,8 +3,8 @@
|
|||
let
|
||||
bins = depot.nix.getBins pkgs.alacritty [ "alacritty" ];
|
||||
|
||||
config = lib.pipe { } [
|
||||
(_: depot.users.Profpatsch.importDhall.importDhall {
|
||||
config =
|
||||
depot.users.Profpatsch.importDhall.importDhall {
|
||||
root = ./.;
|
||||
files = [
|
||||
"alacritty.dhall"
|
||||
|
|
@ -12,18 +12,23 @@ let
|
|||
];
|
||||
main = "alacritty.dhall";
|
||||
deps = [ ];
|
||||
})
|
||||
};
|
||||
|
||||
config-file = lib.pipe config.alacritty-config [
|
||||
(lib.generators.toYAML { })
|
||||
(pkgs.writeText "alacritty.conf")
|
||||
];
|
||||
|
||||
|
||||
alacritty = depot.nix.writeExecline "alacritty" { } [
|
||||
bins.alacritty
|
||||
"--config-file"
|
||||
config
|
||||
"$@"
|
||||
];
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue