mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 09:47:52 +00:00
28 lines
626 B
Nix
28 lines
626 B
Nix
{ 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;
|
|
})]
|
|
);
|
|
};
|
|
}
|