mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Overlays+Packages] Move unstable + nur overlays into package/unstable.nix
This commit is contained in:
parent
b9dbcfd715
commit
42bf49f80e
3 changed files with 29 additions and 15 deletions
28
packages/unstable.nix
Normal file
28
packages/unstable.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.overlays;
|
||||
hardwareCfg = config.aviallon.hardware;
|
||||
unstable = import (fetchGit {
|
||||
url = "https://github.com/NixOS/nixpkgs.git";
|
||||
ref = "nixos-unstable";
|
||||
}) {
|
||||
config = config.nixpkgs.config // { allowUnfree = true; } ;
|
||||
overlays = config.nixpkgs.overlays;
|
||||
};
|
||||
nur = import (fetchGit {
|
||||
url = "https://github.com/nix-community/NUR.git";
|
||||
ref = "master";
|
||||
}) {
|
||||
inherit pkgs;
|
||||
};
|
||||
in {
|
||||
config = {
|
||||
nixpkgs.overlays = mkBefore ([]
|
||||
++ [(final: prev: {
|
||||
inherit nur;
|
||||
inherit unstable;
|
||||
})]
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue