25 lines
517 B
Nix
25 lines
517 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
{
|
|
options.components.terminal.oh-my-posh.enable = mkOption {
|
|
type = lib.types.bool;
|
|
default = config.components.terminal.enable;
|
|
};
|
|
|
|
config = mkIf (config.components.terminal.oh-my-posh.enable) {
|
|
|
|
home-manager.users =
|
|
let
|
|
poshConfig = {
|
|
programs.oh-my-posh = {
|
|
enable = true;
|
|
useTheme = "gruvbox";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
mainUser = poshConfig;
|
|
root = poshConfig;
|
|
};
|
|
};
|
|
}
|