aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flake.lock16
-rw-r--r--flake.nix25
2 files changed, 29 insertions, 12 deletions
diff --git a/flake.lock b/flake.lock
index dac8dc8e..bf440813 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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"
}
}
diff --git a/flake.nix b/flake.nix
index 7661b81a..deaf48f7 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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
+ ];
+ };
+ }
+ );
}