From f6b58231947c90b22ff69cb2b2127d0a3d81388f Mon Sep 17 00:00:00 2001 From: mrflos Date: Mon, 19 Aug 2024 17:41:19 +0300 Subject: [PATCH] feat(nvim): version 0.10 --- modules/console.nix | 18 ++++++++++++++++-- modules/home-config.nix | 6 +++++- modules/local-dev.nix | 3 +++ 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/modules/console.nix b/modules/console.nix index b09f1bf..79a1f9c 100644 --- a/modules/console.nix +++ b/modules/console.nix @@ -1,6 +1,11 @@ # cli programs should be available on servers and desktop -{ pkgs, ... }: - +{ config, pkgs, ... }: +let + unstable = import + (builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/7afa2c97ebb0585d00c64c112344483e89e00545) + # reuse the current configuration + { config = config.nixpkgs.config; }; +in { programs.zsh.enable = true; programs.fzf = { @@ -8,6 +13,14 @@ keybindings = true; }; + # programs.neovim = { + # enable = true; + # defaultEditor = true; + # package = unstable.neovim; + # viAlias = true; + # vimAlias = true; + # }; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ @@ -41,6 +54,7 @@ mpc-cli mpd neofetch + unstable.neovim ollama pandoc pass diff --git a/modules/home-config.nix b/modules/home-config.nix index f60b642..0d5beb8 100644 --- a/modules/home-config.nix +++ b/modules/home-config.nix @@ -197,8 +197,8 @@ in { core.fileMode = false; }; }; + neovim = { - enable = true; defaultEditor = true; viAlias = true; vimAlias = true; @@ -222,10 +222,14 @@ in { nixedit = "vi /etc/nixos"; nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch"; nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc"; + socks = "ssh -N -f -C -D 9090 mrflos@yunohost.yeswiki.net -p 6742"; + vi = "/run/current-system/sw/bin/nvim"; + vim = "/run/current-system/sw/bin/nvim"; yeswiki-updater = "cd /home/mrflos/Developpements/yeswiki-installer/ && sudo php yeswiki-updater.php"; }; initExtra = '' export BUN_INSTALL="$HOME/.bun" + export PHP_CS_FIXER_IGNORE_ENV=1 export PATH="$HOME/.local/bin:$BUN_INSTALL/bin:$PATH" eval "$(atuin init zsh)" eval "$(zoxide init zsh)" diff --git a/modules/local-dev.nix b/modules/local-dev.nix index 21ebb43..9351cac 100644 --- a/modules/local-dev.nix +++ b/modules/local-dev.nix @@ -81,6 +81,9 @@ gcc go nixfmt-rfc-style + lua + lua-language-server + luarocks nixpkgs-fmt nodejs nodePackages.eslint