mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-01-11 09:13:29 +08:00
feat: move neovim to own config
This commit is contained in:
parent
273d6e9207
commit
a50919b8ff
3 changed files with 24 additions and 16 deletions
|
|
@ -1,7 +1,28 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# Nixvim is being used for this
|
||||
programs.neovim = {
|
||||
enable = false;
|
||||
vimAlias = false;
|
||||
};
|
||||
xdg.mimeApps.defaultApplications = lib.mkIf config.xdg.mimeApps.enable {
|
||||
"text/markdown" = "nvim.desktop";
|
||||
"text/html" = "nvim.desktop";
|
||||
"text/xml" = "nvim.desktop";
|
||||
"text/plain" = "nvim.desktop";
|
||||
"text/x-shellscript" = "nvim.desktop";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
inputs.alejandra.defaultPackage.${pkgs.stdenv.hostPlatform.system}
|
||||
inputs.nixvim.packages.${pkgs.stdenv.hostPlatform.system}.default # import config from github:ahwxorg/nixvim-config
|
||||
mermaid-cli
|
||||
gnuplot
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# Environment shit
|
||||
|
|
@ -80,11 +74,6 @@
|
|||
# pip install --user --break-system-packages <package>
|
||||
# '')
|
||||
|
||||
inputs.alejandra.defaultPackage.${pkgs.stdenv.hostPlatform.system}
|
||||
inputs.nixvim.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
mermaid-cli
|
||||
gnuplot
|
||||
|
||||
# Email/calendar/etc
|
||||
neomutt
|
||||
w3m
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
vimv
|
||||
|
|
@ -27,7 +27,5 @@
|
|||
wget
|
||||
xxd
|
||||
borgbackup
|
||||
inputs.alejandra.defaultPackage.${pkgs.stdenv.hostPlatform.system}
|
||||
inputs.nixvim.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue