nixos/modules/desktop/kitty/default.nix

35 lines
580 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,
...
}:
2024-08-01 16:24:09 +04:00
let
2024-01-29 11:51:19 +04:00
cfg = config.modules.desktop.kitty;
in {
2023-07-08 18:39:19 +04:00
options.modules.desktop.kitty = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-08 18:39:19 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-07-08 18:39:19 +04:00
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
};
}