From cee6c5a655813ad776ec7d94127cb849e0505efd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 13 Dec 2019 03:04:57 -0500 Subject: [PATCH] Add pkgs.unstable for easy access to latest nixpkgs --- default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 159ba66c..7b790057 100644 --- a/default.nix +++ b/default.nix @@ -17,8 +17,16 @@ autoOptimiseStore = true; trustedUsers = [ "root" "@wheel" ]; }; - # Forgive me Stallman senpai - nixpkgs.config.allowUnfree = true; + nixpkgs.config = { + # Forgive me Stallman senpai + allowUnfree = true; + + packageOverrides = pkgs: { + unstable = import { + config = config.nixpkgs.config; + }; + }; + }; # Nothing in /tmp should survive a reboot boot.cleanTmpDir = true;