mirror of
https://github.com/artagaz/nix-config.git
synced 2026-06-22 02:02:09 +07:00
37 lines
851 B
Nix
37 lines
851 B
Nix
{ self, ... }:
|
|
{
|
|
flake.nixosModules.kitty = { config, lib, ... }: {
|
|
options = {
|
|
kitty.pywal = {
|
|
enable = lib.mkOption {
|
|
default = false;
|
|
type = lib.types.bool;
|
|
};
|
|
};
|
|
};
|
|
|
|
config = {
|
|
home-manager.users.${self.user}.imports = [
|
|
{
|
|
programs.kitty = {
|
|
enable = true;
|
|
font = {
|
|
name = "${self.font.mono}";
|
|
size = 13;
|
|
};
|
|
settings = {
|
|
confirm_os_window_close = 0;
|
|
remember_window_size = "no";
|
|
};
|
|
extraConfig = lib.mkIf config.kitty.pywal.enable ''
|
|
include ~/.cache/wal/colors-kitty.conf
|
|
background_opacity 0.85
|
|
'';
|
|
themeFile = lib.mkIf (!config.kitty.pywal.enable) "Catppuccin-Mocha";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|