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