flake: add unstable-small overlay

This commit is contained in:
Antoine Martin 2021-05-27 20:16:14 +02:00
parent bd74dab2ac
commit 53b8f142f3
2 changed files with 36 additions and 2 deletions

View file

@ -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