From 3a781eff320873c2131fe643a3f77c49ca30420c Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 25 Jan 2024 19:08:34 +0800 Subject: [PATCH] flake.nix: reduce nixpkgs instances --- flake.lock | 40 ++++++---------------------------------- flake.nix | 9 +++++++++ 2 files changed, 15 insertions(+), 34 deletions(-) diff --git a/flake.lock b/flake.lock index 0517e86e..61fc7a4e 100644 --- a/flake.lock +++ b/flake.lock @@ -437,7 +437,9 @@ }, "home-manager-stable": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1704099619, @@ -456,7 +458,9 @@ }, "home-manager-unstable": { "inputs": { - "nixpkgs": "nixpkgs_2" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1704809957, @@ -686,22 +690,6 @@ "type": "github" } }, - "nixpkgs": { - "locked": { - "lastModified": 1701718080, - "narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "2c7f3c0fb7c08a0814627611d9d7d45ab6d75335", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs-lib": { "locked": { "dir": "lib", @@ -783,22 +771,6 @@ "type": "github" } }, - "nixpkgs_2": { - "locked": { - "lastModified": 1703961334, - "narHash": "sha256-M1mV/Cq+pgjk0rt6VxoyyD+O8cOUiai8t9Q6Yyq4noY=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "b0d36bd0a420ecee3bc916c91886caca87c894e9", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixvim": { "inputs": { "flake-parts": "flake-parts_4", diff --git a/flake.nix b/flake.nix index 6700b26e..ed6ca3ad 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,11 @@ commit-lockfile-summary = "flake.lock: update inputs"; }; + # Just take note we still set common flake inputs to our own version even if + # we just use the modules and its overlays just so we don't download more of + # them. Each flake update is like 100MB worth just from the multiple nixpkgs + # branches at the following section, that's edging on the "too-much" scale + # for my fragile internet bandwidth. inputs = { # I know NixOS can be stable but we're going cutting edge, baybee! While # `nixpkgs-unstable` branch could be faster delivering updates, it is @@ -28,8 +33,12 @@ # Managing home configurations. home-manager.follows = "home-manager-unstable"; + home-manager-stable.url = "github:nix-community/home-manager/release-23.11"; + home-manager-stable.inputs.nixpkgs.follows = "nixpkgs"; + home-manager-unstable.url = "github:nix-community/home-manager"; + home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs"; # Make a Neovim distro. nixvim.url = "github:nix-community/nixvim";