chore: refactor user modules

This commit is contained in:
2025-07-27 22:50:25 +02:00
parent 15a39660eb
commit f396b3a8fb
94 changed files with 832 additions and 665 deletions

View File

@@ -4,17 +4,21 @@
...
}:
with lib; let
cfg = config.modules.starship;
cfg = config.home.shell.starship;
in {
options.modules.starship = {
options.home.shell.starship = {
enable = mkEnableOption "Enables the starship prompt.";
jjIntegration = mkEnableOption "Enables Jujutsu integration in starship.";
jjIntegration = mkOption {
description = "Enable Jujutsu integration in starship";
default = config.programs.jujutsu.enable;
type = types.bool;
};
};
config.programs.starship = mkIf cfg.enable {
inherit (cfg) enable;
enableTransience = true;
settings = {
settings = mkIf cfg.jjIntegration {
custom.jj = {
description = "The current jj status";
detect_folders = [".jj"];