83 lines
2.2 KiB
Nix
83 lines
2.2 KiB
Nix
{ inputs, lib, self, ... }: {
|
|
flake.nixosModules.alacritty = { pkgs, ... }: let
|
|
selfpkgs = self.packages."${pkgs.stdenv.hostPlatform.system}";
|
|
in {
|
|
environment.systemPackages = [
|
|
selfpkgs.myAlacritty
|
|
];
|
|
};
|
|
|
|
perSystem = { pkgs, ... }: let
|
|
environment.systemPackages = [
|
|
pkgs.zsh
|
|
];
|
|
in {
|
|
packages.myAlacritty = inputs.wrapper-modules.wrappers.alacritty.wrap {
|
|
inherit pkgs;
|
|
settings = (builtins.fromTOML
|
|
''
|
|
[terminal.shell]
|
|
args = ['--login']
|
|
program = "zsh"
|
|
|
|
[cursor]
|
|
style = "Block"
|
|
|
|
[font]
|
|
size = 12
|
|
|
|
[font.normal]
|
|
family = "BitstromWeraNerdFont"
|
|
|
|
[window]
|
|
startup_mode = "Windowed"
|
|
dynamic_padding = true
|
|
opacity = 0.9
|
|
|
|
[window.padding]
|
|
x = 0
|
|
y = 0
|
|
|
|
[colors.normal]
|
|
black = '0x090618'
|
|
red = '0xc34043'
|
|
green = '0x76946a'
|
|
yellow = '0xc0a36e'
|
|
blue = '0x7e9cd8'
|
|
magenta = '0x957fb8'
|
|
cyan = '0x6a9589'
|
|
white = '0xc8c093'
|
|
|
|
|
|
[colors.primary]
|
|
background = '0x1f1f28'
|
|
foreground = '0xdcd7ba'
|
|
|
|
[colors.cursor]
|
|
cursor = '0x2d4f67'
|
|
text = '0xc8c093'
|
|
|
|
|
|
[[colors.indexed_colors]]
|
|
index = 16
|
|
color = '0xffa066'
|
|
|
|
[[colors.indexed_colors]]
|
|
index = 17
|
|
color = '0xff5d62'
|
|
|
|
[keyboard]
|
|
bindings = [
|
|
{key="j", mods="Alt", action="ScrollHalfPageDown"},
|
|
{key="k", mods="Alt", action="ScrollHalfPageUp"},
|
|
]
|
|
|
|
[terminal]
|
|
|
|
'' );
|
|
};
|
|
};
|
|
|
|
}
|
|
|