From 792663ce085c9099fea1e72ecf2b3a27ae6792e7 Mon Sep 17 00:00:00 2001 From: traxys Date: Wed, 2 Feb 2022 22:57:52 +0100 Subject: [PATCH] reduce the number of copies of nixpkgs --- flake.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index a6a9a04..fc33282 100644 --- a/flake.nix +++ b/flake.nix @@ -4,8 +4,10 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - home-manager.url = "github:nix-community/home-manager"; - neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; nixpkgs-mozilla = { url = "github:mozilla/nixpkgs-mozilla"; flake = false; @@ -14,12 +16,18 @@ url = "git+https://gitlab.scd31.com/stephen/dotacat.git"; flake = false; }; - rnix-lsp.url = "github:nix-community/rnix-lsp"; + rnix-lsp = { + url = "github:nix-community/rnix-lsp"; + inputs.nixpkgs.follows = "nixpkgs"; + }; stylua = { url = "github:johnnymorganz/stylua"; flake = false; }; - naersk.url = "github:nix-community/naersk"; + naersk = { + url = "github:nix-community/naersk"; + inputs.nixpkgs.follows = "nixpkgs"; + }; fast-syntax-highlighting = { url = "github:z-shell/fast-syntax-highlighting"; flake = false;