[Overlays+Packages] Move unstable + nur overlays into package/unstable.nix

This commit is contained in:
Antoine Viallon 2023-03-15 09:27:53 +01:00
parent b9dbcfd715
commit 42bf49f80e
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
3 changed files with 29 additions and 15 deletions

View file

@ -2,15 +2,6 @@
with lib; with lib;
let let
cfg = config.aviallon.overlays; cfg = config.aviallon.overlays;
unstable = import (fetchGit {
url = "https://github.com/NixOS/nixpkgs.git";
rev = "c573e3eaa8717fbabab3f9a58bfed637fb441eac";
ref = "nixos-unstable";
}) {
config = config.nixpkgs.config // { allowUnfree = true; } ;
overlays = config.nixpkgs.overlays;
};
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; };
in in
{ {
options.aviallon.overlays = { options.aviallon.overlays = {
@ -38,10 +29,6 @@ in
nixpkgs.overlays = [] nixpkgs.overlays = []
++ [(self: super: {
inherit unstable;
inherit nur;
})]
++ optional cfg.traceCallPackage (self: super: { ++ optional cfg.traceCallPackage (self: super: {
callPackage = path: overrides: callPackage = path: overrides:
let let

View file

@ -10,6 +10,7 @@ in
imports = [ imports = [
./programs ./programs
./overlays.nix ./overlays.nix
./packages/unstable.nix
(mkRenamedOptionModule [ "aviallon" "programs" "compileFlags" ] [ "aviallon" "optimizations" "extraCompileFlags" ]) (mkRenamedOptionModule [ "aviallon" "programs" "compileFlags" ] [ "aviallon" "optimizations" "extraCompileFlags" ])
]; ];
@ -52,7 +53,6 @@ in
rsync rsync
par2cmdline # .par2 archive verification par2cmdline # .par2 archive verification
python3 python3
veracrypt
parallel parallel
coreutils-full coreutils-full
nmap nmap
@ -83,7 +83,6 @@ in
}; };
aviallon.programs.allowUnfreeList = [ aviallon.programs.allowUnfreeList = [
"veracrypt"
]; ];
programs.ccache.enable = true; programs.ccache.enable = true;

28
packages/unstable.nix Normal file
View 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;
})]
);
};
}