From 676531c5aa82b2c487e39df094a410e4e80a4462 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 22 Apr 2018 13:38:17 +0200 Subject: [PATCH] feat(packages): Pin stable channel to git commit Instead of relying on nix-channel, pin the stable channel and override it on the whole machine. --- packages.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages.nix b/packages.nix index c2d5a133d..9c1c4b059 100644 --- a/packages.nix +++ b/packages.nix @@ -12,6 +12,13 @@ let # Channels last updated: 2014-04-22 + # Instead of relying on Nix channels and ending up with out-of-sync + # situations between machines, the commit for the stable Nix channel + # is pinned here. + stable = fetchChannel { + rev = "06c576b0525da85f2de86b3c13bb796d6a0c20f6"; + sha256 = "01cra89drfjf3yhii5na0j5ivap2wcs0h8i0xcxrjs946nk4pp5j"; + }; # Certain packages from unstable are required in my daily setup. To # get access to them, they are hand-picked from the unstable channel @@ -24,7 +31,9 @@ in { # Configure the Nix package manager nixpkgs = { config.allowUnfree = true; - config.packageOverrides = oldPkgs: oldPkgs // { + # To use the pinned channel, the original package set is thrown + # away in the overrides: + config.packageOverrides = oldPkgs: stable // { wallpapers = import ./pkgs/wallpapers.nix; pulseaudio-ctl = import pkgs/pulseaudio-ctl.nix;