nix-custom/flake.nix

71 lines
1.9 KiB
Nix
Raw Normal View History

{
description = "Collection of custom Nix packages";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-06-11 00:11:48 -07:00
candy-icons = {
flake = false;
url = "git+https://github.com/EliverLara/candy-icons";
};
2025-10-03 20:22:24 -05:00
feishin-latest = {
flake = false;
url = "git+https://github.com/jeffvli/feishin";
};
2024-06-11 00:11:48 -07:00
sweet-ambar-blue = {
flake = false;
url = "git+https://github.com/EliverLara/Sweet?ref=Ambar-Blue";
};
sweet-ambar-blue-dark = {
flake = false;
url = "git+https://github.com/EliverLara/Sweet?ref=Ambar-Blue-Dark";
};
sweet-folders = {
flake = false;
url = "git+https://github.com/EliverLara/Sweet-folders";
};
2024-06-11 08:54:08 -07:00
sweet-kde = {
flake = false;
url = "git+https://github.com/EliverLara/Sweet-kde?ref=plasma6";
};
2023-10-27 14:09:31 -07:00
yorha-grub-theme = {
flake = false;
url = "github:OliveThePuffin/yorha-grub-theme";
};
2023-11-22 20:26:55 -08:00
yorha-sound-theme = {
flake = false;
2024-06-11 00:11:48 -07:00
url = "git+https://forgejo.invariantspace.com/macronova/yorha-sound-theme";
2023-11-22 20:26:55 -08:00
};
};
2024-09-15 18:34:27 -07:00
outputs = inputs @ {
self,
flake-utils,
nixpkgs,
...
}: let
pkgDrvDir = ./packages;
pkgDrvs = pkgs: (with pkgs.lib;
builtins.listToAttrs
(builtins.map
(pkgDrv: rec {
name =
builtins.substring 0
2023-10-27 15:15:24 -07:00
(
builtins.sub (builtins.stringLength pkgDrv) 4
)
pkgDrv;
2024-09-15 18:34:27 -07:00
value = import (pkgDrvDir + "/${pkgDrv}") {inherit inputs name pkgs;};
2023-10-27 15:15:24 -07:00
})
2024-09-15 18:34:27 -07:00
(builtins.filter (pkgDrv: strings.hasSuffix ".nix" pkgDrv) (builtins.attrNames (builtins.readDir pkgDrvDir)))));
in
2023-10-27 15:15:24 -07:00
{
2024-03-23 19:25:07 -07:00
overlays.default = _: prev: pkgDrvs prev;
2024-09-15 18:34:27 -07:00
}
// flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = pkgDrvs pkgs;
});
}