2024-10-21 12:31:30 +07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
unstable,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-12 18:41:09 +07:00
|
|
|
let
|
|
|
|
cfg = config.profile.neovide;
|
|
|
|
in
|
2024-06-12 09:54:11 +07:00
|
|
|
{
|
2024-06-12 18:41:09 +07:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-10-21 12:31:30 +07:00
|
|
|
home.packages = [ unstable.neovide ];
|
2024-06-12 09:54:11 +07:00
|
|
|
|
2024-06-12 18:41:09 +07:00
|
|
|
home.file.".config/neovide/config.toml".source =
|
|
|
|
let
|
|
|
|
toml = pkgs.formats.toml { };
|
|
|
|
in
|
|
|
|
toml.generate "config.toml" {
|
|
|
|
font = {
|
|
|
|
normal = [ "JetBrainsMono Nerd Font" ];
|
|
|
|
size = 11.0;
|
|
|
|
};
|
|
|
|
fork = false;
|
|
|
|
frame = if config.profile.hyprland.enable then "none" else "full";
|
|
|
|
idle = true;
|
|
|
|
maximied = false;
|
|
|
|
no-multigrid = false;
|
|
|
|
tabs = false;
|
|
|
|
theme = "auto";
|
|
|
|
title-hidden = true;
|
|
|
|
vsync = true;
|
|
|
|
wsl = false;
|
2024-06-12 09:54:11 +07:00
|
|
|
};
|
2024-06-12 18:41:09 +07:00
|
|
|
};
|
2024-06-12 09:54:11 +07:00
|
|
|
}
|