34 lines
585 B
Nix
34 lines
585 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ ];
|
|
|
|
options.me = {
|
|
alacritty.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
example = true;
|
|
description = "Whether we want to install alacritty.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.me.alacritty.enable && config.me.graphical) {
|
|
environment.systemPackages = with pkgs; [
|
|
alacritty
|
|
xdg-utils # for xdg-open
|
|
];
|
|
|
|
me.install.user.talexander.file = {
|
|
".config/alacritty/alacritty.toml" = {
|
|
source = ./files/alacritty.toml;
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|