nixos/modules/desktop/kitty/default.nix

35 lines
582 B
Nix
Raw Normal View History

2023-07-08 18:39:19 +04:00
{
2024-01-29 11:51:19 +04:00
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.kitty;
in {
2023-07-08 18:39:19 +04:00
options.modules.desktop.kitty = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
kitty
];
2024-01-29 11:51:19 +04:00
home-manager.users.sako = {pkgs, ...}: {
xdg.configFile = {
kitty = {
source = ../../../config/kitty;
2023-07-08 18:39:19 +04:00
};
2024-01-29 11:51:19 +04:00
};
2023-07-08 18:39:19 +04:00
};
2023-07-08 23:27:08 +04:00
# also just in case
2024-01-29 11:51:19 +04:00
fonts.packages = with pkgs; [
jetbrains-mono
(nerdfonts.override {fonts = ["JetBrainsMono"];})
2023-07-08 23:27:08 +04:00
];
2023-07-08 18:39:19 +04:00
};
}