Oh-my-zsh configured
This commit is contained in:
parent
3d455e3c64
commit
9c2d83d757
1 changed files with 18 additions and 0 deletions
|
@ -15,6 +15,19 @@ in {
|
||||||
description = "enable zsh profiling";
|
description = "enable zsh profiling";
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = mkEnableOption "oh-my-zsh";
|
||||||
|
theme = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "oh-my-zsh theme";
|
||||||
|
default = "alanpeabody";
|
||||||
|
};
|
||||||
|
plugins = mkOption {
|
||||||
|
type = types.listOf(types.str);
|
||||||
|
description = "oh-my-zsh plugins (like git)";
|
||||||
|
default = ["git"];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -69,6 +82,11 @@ in {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
oh-my-zsh = mkIf cfg.oh-my-zsh.enable {
|
||||||
|
enable = cfg.oh-my-zsh.enable;
|
||||||
|
theme = cfg.oh-my-zsh.theme;
|
||||||
|
plugins = cfg.oh-my-zsh.plugins;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue