1
0
Fork 0
piped-flake/flake.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2023-09-08 10:59:27 +01:00
{
description = "Piped - A alternate frontend for YouTube";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = {
self,
nixpkgs,
utils,
...
}:
{
nixosModules.piped = import ./module/default.nix;
2023-09-08 10:59:27 +01:00
nixosModules.default = self.nixosModules.piped;
overlays.piped = final: _prev: {
2023-09-08 10:59:27 +01:00
piped-frontend = final.callPackage ./packages/frontend {};
piped-backend = final.callPackage ./packages/backend {
jre = final.openjdk19_headless;
jdk = final.openjdk19;
};
piped-proxy = final.callPackage ./packages/proxy {};
};
overlays.default = self.overlays.piped;
2023-09-08 10:59:27 +01:00
}
// utils.lib.eachSystem (utils.lib.defaultSystems) (system: let
pkgs = import nixpkgs {
inherit system;
2023-09-08 12:01:41 +01:00
overlays = [self.overlays.default];
2023-09-08 10:59:27 +01:00
};
in {
formatter = pkgs.alejandra;
2023-09-08 10:59:27 +01:00
packages = {
inherit (pkgs) piped-frontend;
inherit (pkgs) piped-backend;
inherit (pkgs) piped-proxy;
};
});
}