From 05553b6fa077a3286b01169abd6d149deb7773b0 Mon Sep 17 00:00:00 2001 From: janabhumi Date: Sun, 18 Sep 2022 17:38:31 +0300 Subject: [PATCH] nix: move nix lsp to home config --- flake.lock | 79 +----------------------------------------------------- flake.nix | 7 +---- 2 files changed, 2 insertions(+), 84 deletions(-) diff --git a/flake.lock b/flake.lock index d48ad13..16c4428 100644 --- a/flake.lock +++ b/flake.lock @@ -1,57 +1,6 @@ { "nodes": { - "flake-utils": { - "locked": { - "lastModified": 1659877975, - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "nil": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" - }, - "locked": { - "lastModified": 1663265701, - "narHash": "sha256-0sZULukbNmlhkH2+dwWK83zN5gRaZCoUBlSjMENg2o8=", - "owner": "oxalica", - "repo": "nil", - "rev": "9e395607ad6dd8e771b8b0979ae738e845e7000c", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "nil", - "type": "github" - } - }, "nixpkgs": { - "locked": { - "lastModified": 1662096612, - "narHash": "sha256-R+Q8l5JuyJryRPdiIaYpO5O3A55rT+/pItBrKcy7LM4=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "21de2b973f9fee595a7a1ac4693efff791245c34", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_2": { "locked": { "lastModified": 1663146586, "narHash": "sha256-VCGdyEc5TF0uq+gdU+jesjZcNxptomDunvGtElmAD9I=", @@ -69,36 +18,10 @@ }, "root": { "inputs": { - "nil": "nil", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "utils": "utils" } }, - "rust-overlay": { - "inputs": { - "flake-utils": [ - "nil", - "flake-utils" - ], - "nixpkgs": [ - "nil", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1662173844, - "narHash": "sha256-+ZgW98Y8fZkgFSylE+Mzalumw+kw3SVivZznbJqQaj8=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "8ac6d40380dc4ec86f1ff591d5c14c8ae1d77a18", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" - } - }, "utils": { "locked": { "lastModified": 1659877975, diff --git a/flake.nix b/flake.nix index 83942b1..a431c9e 100644 --- a/flake.nix +++ b/flake.nix @@ -2,18 +2,14 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; utils.url = "github:numtide/flake-utils"; - - # nix lsp - nil.url = "github:oxalica/nil"; }; - outputs = input @ { self, nixpkgs, utils, ... }: + outputs = { self, nixpkgs, utils, ... }: utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; neovim = pkgs.callPackage ./. { }; - nil = input.nil.packages.${system}.nil; in { apps.default = { @@ -26,7 +22,6 @@ devShells.default = pkgs.mkShell { packages = [ neovim - nil # nix lsp pkgs.stylua # lua formatter ]; };