Regenerated

This commit is contained in:
2026-03-22 14:53:18 +00:00
parent f2d26e0466
commit c7db69c486
31 changed files with 0 additions and 1595 deletions
@@ -1,36 +0,0 @@
{ 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)
);
};
};
}
@@ -1,26 +0,0 @@
{ lib, config, pkgs, ... }:
let
username = config.defaultUser or "henrov";
# Paths
starshipAssets = ../../../assets/system/conf/starship.toml;
in
{
# Install Starship system-wide
environment.systemPackages = [
pkgs.starship
];
# Home Manager user settings
_module.args.hmUsers = {
${username} = {
home.packages = [
pkgs.starship
];
# Copy the config into ~/.config
home.file.".config/starship.toml".source = starshipAssets;
};
};
}
@@ -1,44 +0,0 @@
{ lib, pkgs, config, ... }:
let
username = config.users.users.defaultUser or "henrov";
homeDir = "/home/${username}";
programName = "zsh";
programAssets = ../../../assets/system/conf/${programName};
zshInitFile = "${programAssets}/zsh.conf";
in
{
#################################
# SYSTEM-WIDE INSTALLATION ONLY #
#################################
# Install Zsh and Oh-My-Zsh globally
environment.systemPackages = [
pkgs.zsh
pkgs.oh-my-zsh # this is the Nixpkgs oh-my-zsh package
];
#######################################
# USER-SPECIFIC CONFIGURATION (henrov)#
#######################################
# Copy a pre-built .zshrc into henrov's home
environment.etc."zshrc-${username}".text = ''
# Point Zsh to the Oh-My-Zsh installation in /run/current-system/sw
export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh
ZSH_THEME="catppuccin-mocha"
plugins=(git docker direnv zsh-completions)
# Load oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Inject custom zsh.conf
${builtins.readFile zshInitFile}
'';
# Symlink it to user's ~/.zshrc
users.users."${username}".shell = pkgs.zsh;
users.users."${username}".extraHomeFiles = {
".zshrc" = "/etc/zshrc-${username}";
};
}