my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux

Revert "isabel/neovim: add nixd"

This reverts commit d2546ecb9a6a579d1c46e9128861aebb5162b3c4.

+24 -37
-36
.nvim.lua
··· 1 - local lspconfig = require("lspconfig") 2 - 3 - local hostname = vim.loop.os_gethostname() 4 - 5 - lspconfig.nixd.setup({ 6 - cmd = { "nixd" }, 7 - settings = { 8 - nixd = { 9 - nixpkgs = { 10 - expr = "import <nixpkgs> { }", 11 - }, 12 - formatting = { 13 - command = { "nixfmt" }, 14 - }, 15 - options = { 16 - nixos = { 17 - expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.' .. hostname .. ".options", 18 - }, 19 - ["nix-darwin"] = { 20 - expr = '(builtins.getFlake ("git+file://" + toString ./.)).darwinConfigurations.' .. hostname .. ".options", 21 - }, 22 - ["home-manager"] = { 23 - expr = "(builtins.getFlake (builtins.toString ./.)).nixosConfigurations." 24 - .. hostname 25 - .. ".options.home-manager.users.type.getSubOptions []", 26 - }, 27 - ["flake-parts"] = { 28 - expr = "(builtins.getFlake (builtins.toString ./.)).debug.options", 29 - }, 30 - ["flake-parts2"] = { 31 - expr = "(builtins.getFlake (builtins.toString ./.)).currentSystem.options", 32 - }, 33 - }, 34 - }, 35 - }, 36 - })
+24 -1
home/isabel/tui/neovim.nix
··· 1 - { config, inputs, ... }: 1 + { 2 + pkgs, 3 + config, 4 + inputs, 5 + ... 6 + }: 2 7 { 3 8 imports = [ inputs.izvim.homeModules.default ]; 4 9 5 10 programs.izvim = { 6 11 inherit (config.garden.profiles.workstation) enable; 12 + 13 + packageOverrides = { 14 + nil = (pkgs.nil.override { nix = config.nix.package; }).overrideAttrs ( 15 + finalAttrs: _: { 16 + src = pkgs.fetchFromGitHub { 17 + owner = "oxalica"; 18 + repo = "nil"; 19 + rev = "cd7a6f6d5dc58484e62a8e85677e06e47cf2bd4d"; 20 + hash = "sha256-fK4INnIJQNAA8cyjcDRZSPleA+N/STI6I0oBDMZ2r+E="; 21 + }; 22 + 23 + cargoDeps = pkgs.rustPlatform.fetchCargoVendor { 24 + inherit (finalAttrs) src; 25 + hash = "sha256-wvtCLCvpxbUo7VZPExUI7J+U06jnWBMnVuXqJeL/kOI="; 26 + }; 27 + } 28 + ); 29 + }; 7 30 }; 8 31 }