meta(flake.nix): Add overlays as outputs

Should make it easier for other repositories to use the overlays from
this repository.
This commit is contained in:
Donovan Glover 2024-03-31 06:19:16 -04:00
parent efec942be0
commit 18acfd0749
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
6 changed files with 69 additions and 78 deletions

View File

@ -37,5 +37,12 @@
osu-backgrounds = callPackage ./packages/osu-backgrounds.nix { };
webp-thumbnailer = callPackage ./packages/webp-thumbnailer.nix { };
};
overlays = {
base16-schemes = import ./overlays/base16-schemes.nix;
kitty = import ./overlays/kitty.nix;
srb2 = import ./overlays/srb2.nix;
zola = import ./overlays/zola.nix;
};
};
}

View File

@ -1,6 +1,4 @@
{
nixpkgs.overlays = [
(final: prev: {
(final: prev: {
base16-schemes = prev.base16-schemes.overrideAttrs (oldAttrs: {
version = "unstable-2023-05-02";
@ -20,6 +18,4 @@
runHook postInstall
'';
});
})
];
}
})

View File

@ -1,8 +1,8 @@
{
imports = [
./base16-schemes.nix
./kitty.nix
./srb2.nix
./zola.nix
nixpkgs.overlays = [
(import ./base16-schemes.nix)
(import ./kitty.nix)
(import ./srb2.nix)
(import ./zola.nix)
];
}

View File

@ -1,6 +1,4 @@
{
nixpkgs.overlays = [
(final: prev: {
(final: prev: {
kitty = prev.kitty.overrideAttrs (oldAttrs: rec {
version = "0.31.0";
@ -21,6 +19,4 @@
../patches/kitty-wlroots-copying-fix.patch
];
});
})
];
}
})

View File

@ -1,6 +1,4 @@
{
nixpkgs.overlays = [
(final: prev: {
(final: prev: {
srb2 = prev.srb2.overrideAttrs (oldAttrs: {
desktopItems = [
(prev.makeDesktopItem rec {
@ -15,6 +13,4 @@
})
];
});
})
];
}
})

View File

@ -1,9 +1,5 @@
{
nixpkgs.overlays = [
(final: prev: {
(final: prev: {
zola = prev.zola.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or [ ]) ++ [ ../patches/zola-serve-fix.patch ];
});
})
];
}
})