From 53b8f142f377c37a1647f3a8f9679872147242e4 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 27 May 2021 20:16:14 +0200 Subject: [PATCH] flake: add unstable-small overlay --- flake.lock | 19 ++++++++++++++++++- flake.nix | 19 ++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index f5c1fb1..e57a2ff 100644 --- a/flake.lock +++ b/flake.lock @@ -69,12 +69,29 @@ "type": "github" } }, + "nixpkgs-unstable-small": { + "locked": { + "lastModified": 1622099353, + "narHash": "sha256-lDLpmiMDt8Su3fjxeaSyh7aWmiQg1rtcPOC+sAIvhro=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a48d4bf159076106895df685e879aff235bcbff3", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "emacs-overlay": "emacs-overlay", "home-manager": "home-manager", "nixpkgs": "nixpkgs", - "nixpkgs-unstable": "nixpkgs-unstable" + "nixpkgs-unstable": "nixpkgs-unstable", + "nixpkgs-unstable-small": "nixpkgs-unstable-small" } } }, diff --git a/flake.nix b/flake.nix index cf36ae3..ef0abb1 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,13 @@ ref = "nixos-unstable"; }; + nixpkgs-unstable-small = { + type = "github"; + owner = "NixOS"; + repo = "nixpkgs"; + ref = "nixos-unstable-small"; + }; + emacs-overlay = { type = "github"; owner = "nix-community"; @@ -31,7 +38,12 @@ }; }; - outputs = { self, nixpkgs, nixpkgs-unstable, emacs-overlay, home-manager }: { + outputs = { self, + nixpkgs, + nixpkgs-unstable, + nixpkgs-unstable-small, + emacs-overlay, + home-manager }: { nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec { system = "x86_64-linux"; modules = @@ -91,6 +103,11 @@ (self: super: { packages = import ./pkgs { pkgs = super; }; + + unstable-small = import nixpkgs-unstable-small { + inherit system; + config.allowUnfree = true; + }; }) # uncomment this to build everything from scratch, fun but takes a