diff options
| -rw-r--r-- | flake.lock | 16 | ||||
| -rw-r--r-- | flake.nix | 25 |
2 files changed, 29 insertions, 12 deletions
@@ -1,5 +1,20 @@ { "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1634851050, + "narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c91f3de5adaf1de973b797ef7485e441a65b8935", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1626644568, @@ -16,6 +31,7 @@ }, "root": { "inputs": { + "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } } @@ -1,17 +1,18 @@ { description = "Quickstart configurations for the Nvim LSP client"; - outputs = { self, nixpkgs }: let - pkgs = import nixpkgs { system = "x86_64-linux";}; - in { + inputs.flake-utils.url = "github:numtide/flake-utils"; - devShell."x86_64-linux" = pkgs.mkShell { - - buildInputs = [ - pkgs.stylua - pkgs.luaPackages.luacheck - ]; - }; - - }; + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + rec { + devShell = pkgs.mkShell { + buildInputs = [ + pkgs.stylua + pkgs.luaPackages.luacheck + ]; + }; + } + ); } |
