home-manager/programs/neovide: remove

It is available within the upstream with literally the same options.
This commit is contained in:
Gabriel Arazas 2024-10-02 17:07:46 +08:00
parent 6db247e6fe
commit e04af9e41a
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
6 changed files with 0 additions and 99 deletions

View File

@ -1,7 +1,6 @@
{ {
imports = [ imports = [
./files/mutable-files.nix ./files/mutable-files.nix
./programs/neovide.nix
./programs/pipewire.nix ./programs/pipewire.nix
./programs/pop-launcher.nix ./programs/pop-launcher.nix
./programs/zed-editor.nix ./programs/zed-editor.nix

View File

@ -1,53 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.neovide;
settingsFormat = pkgs.formats.toml { };
in
{
options.programs.neovide = {
enable = lib.mkEnableOption "Neovide, a graphical interface for Neovim";
package = lib.mkPackageOption pkgs "neovide" { };
settings = lib.mkOption {
type = settingsFormat.type;
description = ''
The settings to be generated at
{file}`$XDG_CONFIG_HOME/neovide/config.toml`.
'';
default = { };
example = {
maximized = true;
font = {
normal = [ "MonoLisa Nerd Font" ];
size = 18;
features.MonoLisa = [
"+ss01"
"+ss07"
"+ss11"
"-calt"
"+ss09"
"+ss02"
"+ss14"
"+ss16"
"+ss17"
];
};
};
};
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
home.packages = [ cfg.package ];
}
(lib.mkIf (cfg.settings != { }) {
xdg.configFile."neovide/config.toml".source =
settingsFormat.generate "home-manager-neovide-settings" cfg.settings;
})
]);
}

View File

@ -54,7 +54,6 @@ import nmt {
# TODO: Fix nmt to accept specialArgs or something. # TODO: Fix nmt to accept specialArgs or something.
tests = builtins.foldl' (a: b: a // (import b)) { } ([ tests = builtins.foldl' (a: b: a // (import b)) { } ([
#./programs/borgmatic #./programs/borgmatic
./programs/neovide
./programs/pipewire ./programs/pipewire
./programs/pop-launcher ./programs/pop-launcher
./programs/zed-editor ./programs/zed-editor

View File

@ -1,29 +0,0 @@
{ config, lib, ... }: {
programs.neovide = {
enable = true;
settings = {
maximized = true;
font = {
normal = [ "MonoLisa Nerd Font" ];
size = 18;
features.MonoLisa = [
"+ss01"
"+ss07"
"+ss11"
"-calt"
"+ss09"
"+ss02"
"+ss14"
"+ss16"
"+ss17"
];
};
};
};
test.stubs.neovide = { };
nmt.script = ''
assertFileExists home-files/.config/neovide/config.toml
'';
}

View File

@ -1,4 +0,0 @@
{
neovide-basic-settings = ./basic.nix;
neovide-empty-settings = ./empty-settings.nix;
}

View File

@ -1,11 +0,0 @@
{ ... }:
{
programs.neovide.enable = true;
test.stubs.neovide = { };
nmt.script = ''
assertPathNotExists home-files/.config/neovide/config.toml
'';
}