nixos-matrix-modules/flake.nix

31 lines
656 B
Nix
Raw Normal View History

2022-06-05 03:59:53 +02:00
{
description = "NixOS modules for matrix related services";
2023-01-20 07:53:01 +01:00
inputs = {
2024-01-27 07:39:59 +01:00
nixpkgs.url = "nixpkgs/nixos-23.11";
2023-01-20 07:53:01 +01:00
};
2024-01-27 07:39:59 +01:00
outputs = { self, nixpkgs }: {
2022-06-05 03:59:53 +02:00
nixosModules = {
default = import ./module.nix;
2022-06-05 03:59:53 +02:00
};
2024-01-27 07:39:59 +01:00
lib = import ./lib.nix { lib = nixpkgs.lib; };
packages = let
forAllSystems = f:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: f nixpkgs.legacyPackages.${system});
in forAllSystems (pkgs: {
tests = import ./tests {
inherit nixpkgs pkgs;
matrix-lib = self.lib;
};
});
2022-06-05 03:59:53 +02:00
};
}