35 lines
1005 B
Nix
35 lines
1005 B
Nix
{ config, pkgs, lib, user, flakeRoot, ... }:
|
|
let
|
|
kittyConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/kitty";
|
|
in
|
|
{
|
|
home-manager.users.${user.username} = {
|
|
# Kitty Terminal
|
|
programs.kitty = {
|
|
enable = true;
|
|
};
|
|
|
|
# Kitty config (main + theme)
|
|
xdg.configFile."kitty/kitty.conf".source = "${flakeRoot}/assets/common/conf/kitty/kitty.conf";
|
|
|
|
/*
|
|
# Starship (with your custom config)
|
|
programs.starship = {
|
|
enable = true;
|
|
settings = {
|
|
# This ensures Starship uses your config file
|
|
configFile = "${flakeRoot}/assets/conf/starship.toml";
|
|
};
|
|
};
|
|
*/
|
|
|
|
# Ensure Kitty's shell starts Starship
|
|
xdg.configFile."kitty/kitty.conf".text = lib.concatStringsSep "\n" [
|
|
(builtins.readFile "${flakeRoot}/assets/common/conf/kitty/kitty.conf")
|
|
""
|
|
"# Ensure Starship is loaded in Kitty's shell"
|
|
"shell ${pkgs.zsh}/bin/zsh -c \"${pkgs.starship}/bin/starship init zsh | source\""
|
|
];
|
|
};
|
|
}
|