2023-06-30 22:10:42 +02:00
|
|
|
{ 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;
|
2023-07-01 00:20:03 +02:00
|
|
|
# useTheme = "gruvbox";
|
|
|
|
settings = builtins.fromJSON (builtins.readFile ./gruvbox.json);
|
2023-06-30 22:10:42 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
mainUser = poshConfig;
|
|
|
|
root = poshConfig;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|