mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
home-manager/programs/neovide: remove
It is available within the upstream with literally the same options.
This commit is contained in:
parent
6db247e6fe
commit
e04af9e41a
@ -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
|
||||||
|
@ -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;
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}
|
|
@ -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
|
||||||
|
@ -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
|
|
||||||
'';
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
neovide-basic-settings = ./basic.nix;
|
|
||||||
neovide-empty-settings = ./empty-settings.nix;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.neovide.enable = true;
|
|
||||||
|
|
||||||
test.stubs.neovide = { };
|
|
||||||
|
|
||||||
nmt.script = ''
|
|
||||||
assertPathNotExists home-files/.config/neovide/config.toml
|
|
||||||
'';
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user