105 lines
1.8 KiB
Nix
105 lines
1.8 KiB
Nix
#productivity
|
|
todoist
|
|
|
|
# browsers
|
|
brave
|
|
chromium
|
|
|
|
# utils
|
|
git
|
|
direnv
|
|
ripgrep
|
|
wget
|
|
kdePackages.kdeconnect-kde
|
|
_1password-gui
|
|
tree
|
|
gparted
|
|
file
|
|
htop
|
|
btop
|
|
bat
|
|
wev
|
|
solaar
|
|
baobab
|
|
duf
|
|
zed-editor
|
|
eza
|
|
z-lua
|
|
qdirstat
|
|
|
|
# office
|
|
obsidian
|
|
onlyoffice-desktopeditors
|
|
|
|
# development
|
|
postman
|
|
tea
|
|
|
|
#jetbrains.pycharm
|
|
python3
|
|
|
|
# communication
|
|
nextcloud-client
|
|
nextcloud-talk-desktop
|
|
signal-desktop
|
|
openssl
|
|
|
|
# multimedia
|
|
audacity
|
|
handbrake
|
|
spotify
|
|
vlc
|
|
|
|
{ lib, pkgs, config, flakeRoot... }:
|
|
|
|
let
|
|
#################################
|
|
# Determine default username
|
|
#################################
|
|
username = config.defaultUser or "henrov";
|
|
moduleName = "kitty";
|
|
|
|
#################################
|
|
# Paths to assets
|
|
#################################
|
|
assetPath = "${flakeRoot}/generated/.config/kitty";
|
|
programFiles = builtins.readDir assetPath;
|
|
|
|
# Convert asset files into a nix attribute set
|
|
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
|
|
source = "${assetPath}/${name}";
|
|
});
|
|
|
|
in
|
|
{
|
|
#################################
|
|
# System-wide packages
|
|
#################################
|
|
environment.systemPackages = [
|
|
pkgs.kitty
|
|
];
|
|
|
|
#################################
|
|
# Home Manager user configuration
|
|
#################################
|
|
_module.args.hmUsers = {
|
|
${username} = {
|
|
|
|
# Enable Kitty through Home Manager
|
|
programs.kitty.enable = true;
|
|
|
|
# Extra user-specific config snippet
|
|
programs.kitty.extraConfig = ''
|
|
# Include the Catppuccin-Mocha theme
|
|
include themes/Catppuccin-Mocha.conf
|
|
'';
|
|
|
|
# Map all asset files into ~/.config/kitty/
|
|
home.file = lib.mkMerge (
|
|
map (name: { ".config/${moduleName}/${name}" = { source = files.${name}.source; }; })
|
|
(builtins.attrNames files)
|
|
);
|
|
};
|
|
};
|
|
}
|