Regenerated

This commit is contained in:
2026-03-22 15:31:44 +00:00
parent 339cc5db44
commit 2abfcd689a
31 changed files with 1579 additions and 0 deletions
@@ -0,0 +1,36 @@
{ lib, pkgs, config, ... }:
let
username = config.defaultUser or "henrov";
moduleName = "kitty";
# Paths and files
assetPath = ../../../assets/system/conf/${moduleName};
programFiles = builtins.readDir assetPath;
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
src = "${assetPath}/${name}";
});
in
{
# Install kitty system-wide
environment.systemPackages = [ pkgs.kitty ];
# Home Manager user-specific configuration
_module.args.hmUsers = {
${username} = {
programs.kitty.enable = true;
# Extra user config snippet
programs.kitty.extraConfig = ''
# Include the Catppuccin-Mocha theme
include themes/Catppuccin-Mocha.conf
'';
# Copy all asset files into ~/.config/kitty/
home.file = lib.mkMerge (
map (name: { ".config/${moduleName}/${name}" = { source = files.${name}.src; }; })
(builtins.attrNames files)
);
};
};
}
@@ -0,0 +1,7 @@
{ config, pkgs, lib, flakeRoot, ... }:
{
programs.starship = {
enable = true; # enable Starship integration
};
}
@@ -0,0 +1,47 @@
{ config, pkgs, lib, ... }:
let
isHM = config.home-manager.useHomeManager or false;
in
{
###########################
# NIXOS SYSTEM CONFIG
###########################
programs.zsh = {
enable = true;
enableCompletion = true;
ohMyZsh = {
enable = true;
theme = "";
plugins = [
"git"
"sudo"
"extract"
"colored-man-pages"
"command-not-found"
"history"
"docker"
"kubectl"
];
};
};
###########################
# HOME-MANAGER CONFIG (only if HM is active)
###########################
home.file."zsh.nix".text = lib.mkIf isHM ''
# Only applied in home-manager context
# Set Zsh dotDir, autosuggestions, syntax highlighting, autocd
export ZDOTDIR="${config.xdg.configHome}/zsh"
# Optional: source your plugins/config here
'';
home.programs.zsh = lib.mkIf isHM {
autocd = true;
dotDir = "${config.xdg.configHome}/zsh";
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
};
}