get rid of overlay for selfprivacy-graphql-api

This commit is contained in:
Alexander Tomokhov
2023-11-06 12:18:08 +04:00
parent 7cee132d8e
commit b4b37f42f2
4 changed files with 36 additions and 22 deletions

View File

@@ -3,19 +3,32 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
selfprivacy-overlay.url =
"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git";
selfprivacy-graphql-api.url =
"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
selfprivacy-graphql-api.inputs.nixpkgs.follows = "nixpkgs";
# TODO nixpkgs inputs of selfprivacy-graphql-api and this flake must match!
};
outputs = { self, nixpkgs, selfprivacy-overlay }:
outputs = { self, nixpkgs, selfprivacy-graphql-api }:
let
system = "x86_64-linux";
in
{
nixosConfigurations-fun = { hardware-configuration, userdata }: {
just-nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system selfprivacy-overlay userdata; };
modules = [ hardware-configuration ./configuration.nix ];
specialArgs = {
inherit
system
hardware-configuration
userdata;
selfprivacy-graphql-api =
selfprivacy-graphql-api.packages.${system}.default;
};
modules = [
hardware-configuration
./configuration.nix
];
};
};
};