Regenerated
This commit is contained in:
+14
-15
@@ -1035,42 +1035,42 @@ in
|
||||
** =generated/modules/terminals/kitty.nix=
|
||||
This file sets up Kitty terminal
|
||||
#+BEGIN_SRC nix :tangle generated/modules/terminals/kitty.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, flakeRoot, ... }:
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
# --- Module-specific variables ---
|
||||
moduleName = "kitty";
|
||||
username = config.defaultUser or "henrov";
|
||||
assetPath = "${flakeRoot}/assets/system/conf/${moduleName}";
|
||||
# --- Module variables ---
|
||||
moduleName = "kitty";
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
# Read all files in the asset directory
|
||||
# Assets path relative to this module
|
||||
assetPath = ../../../assets/system/conf/${moduleName};
|
||||
|
||||
# Read all files in the assets directory
|
||||
programFiles = builtins.readDir assetPath;
|
||||
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
|
||||
src = "${assetPath}/${name}";
|
||||
});
|
||||
|
||||
# Top-level enable toggle
|
||||
# Top-level toggle for this module
|
||||
enableProgram = config.enableKitty or true;
|
||||
in
|
||||
{
|
||||
# --- Declare the top-level toggle for this module ---
|
||||
# --- Declare the top-level toggle ---
|
||||
options.enableKitty = lib.mkEnableOption "Enable Kitty terminal integration";
|
||||
|
||||
# --- Actual configuration applied only if enabled ---
|
||||
# --- Configuration applied only if enabled ---
|
||||
config = lib.mkIf enableProgram {
|
||||
|
||||
# Dendritic container for this program
|
||||
# Dendritic container for the program
|
||||
myApps.${moduleName} = {
|
||||
enable = true;
|
||||
user = username;
|
||||
assetsDir = assetPath;
|
||||
files = files;
|
||||
|
||||
# Example program-specific metadata
|
||||
theme = "Catppuccin-Mocha";
|
||||
};
|
||||
|
||||
# Deploy config files to user's ~/.config
|
||||
# Deploy config files to the user's ~/.config directory
|
||||
home-manager.users.${username} = {
|
||||
programs.kitty.enable = true;
|
||||
|
||||
@@ -1102,12 +1102,11 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
# Restart service if assets change
|
||||
restartTriggers = [ assetPath ];
|
||||
|
||||
# Minimal PATH for the service
|
||||
path = [
|
||||
# Use symbolic references if needed, e.g., coreutils binaries
|
||||
# Only include binaries if necessary
|
||||
# pkgs.coreutils
|
||||
# pkgs.gnugrep
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user