feat: add option for dotfile linking for neovim
This commit is contained in:
@@ -32,6 +32,9 @@ in
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-medium.yaml";
|
||||
};
|
||||
|
||||
# neovim manages its own theme
|
||||
home-manager.users.matej.stylix.targets.neovim.enable = false;
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-medium.yaml";
|
||||
};
|
||||
|
||||
# neovim manages its own theme
|
||||
home-manager.users.matej.stylix.targets.neovim.enable = false;
|
||||
|
||||
# lanzaboote secure boot
|
||||
boot.kernelParams = [ "btusb.reset=1" ];
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
@@ -9,11 +9,20 @@
|
||||
neovim = {
|
||||
enable = lib.mkEnableOption "neovim nightly with lsp support";
|
||||
package = lib.mkPackageOption pkgs "neovim" { };
|
||||
dotfiles = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
default = null;
|
||||
description = "path to neovim config directory";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.neovim.enable {
|
||||
stylix.targets.neovim.enable = false;
|
||||
config = lib.mkIf config.neovim.enable (
|
||||
lib.mkMerge [
|
||||
(lib.mkIf (config.neovim.dotfiles != null) {
|
||||
xdg.configFile."nvim".source = config.neovim.dotfiles;
|
||||
})
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
@@ -55,5 +64,7 @@
|
||||
"${lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user