Add gitpkgs to flake inputs and configure package overlays.

This commit is contained in:
Kevin Baensch 2023-04-16 13:43:17 +02:00
parent 908b709439
commit 60bd2e3271
Signed by: derped
GPG key ID: C0F1D326C7626543
3 changed files with 54 additions and 27 deletions

View file

@ -1,17 +1,27 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs,
nixpkgs-unstable, nixpkgs-stable, nixpkgs-git,
... }:
let
callPackage = pkgs.callPackage;
in {
nixpkgs.config = {
allowUnfree = true;
mpv.vaapiSupport = (lib.elem "xserver" config.machine.services);
nixpkgs = {
config = {
allowUnfree = true;
mpv.vaapiSupport = (lib.elem "xserver" config.machine.services);
packageOverrides = {
theme_flat-remix = callPackage ./flat-remix { };
theme_sddm_midnight = callPackage ./sddm_midnight { };
xdiskusage = callPackage ./xdiskusage { };
gitpkgs = import /nixpkgs {};
packageOverrides = {
theme_flat-remix = callPackage ./flat-remix { };
theme_sddm_midnight = callPackage ./sddm_midnight { };
xdiskusage = callPackage ./xdiskusage { };
};
};
overlays = [
(final: prev: {
gitpkgs = nixpkgs-git.legacyPackages."${prev.system}";
stablepkgs = nixpkgs-stable.legacyPackages."${prev.system}";
unstablepkgs = nixpkgs-unstable.legacyPackages."${prev.system}";
})
];
};
}