1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-04-27 23:35:05 +02:00
git.oat.zone--dark-firepit-.../modules/desktop/apps/alacritty.nix
System administrator ec00c09f2e Dotfiles
2022-01-11 17:44:40 +00:00

46 lines
1.0 KiB
Nix

{ config, options, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.desktop.apps.alacritty;
in {
options.modules.desktop.apps.alacritty = {
enable = mkOption {
type = types.bool;
default = false;
};
executable = mkOption {
type = types.str;
default = "${pkgs.alacritty}/bin/alacritty";
};
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
alacritty
];
home._.programs.alacritty = {
enable = true;
/*
settings = {
background_opacity = theme.backgroundOpacity;
font = {
size = 12;
normal.family = theme.font.mono;
bold.family = theme.font.mono;
italic.family = theme.font.mono;
};
colors = {
primary = {
background = theme.colors.background;
foreground = theme.colors.foreground;
};
normal = theme.colors.backgroundScheme;
bright = theme.colors.foregroundScheme;
};
};
*/
};
};
}