Home

horcrux @8cbda0b74aa054bc4659636eb91b2d5cf831ce6d - refs - log -
-
https://git.jolheiser.com/horcrux.git
Split your source across forges
horcrux / flake.nix
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
  description = "Mirror git repositories across multiple remotes";
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
  outputs =
    { nixpkgs, ... }:
    let
      systems = [
        "aarch64-darwin"
        "aarch64-linux"
        "x86_64-darwin"
        "x86_64-linux"
      ];
      forAllSystems = f: nixpkgs.lib.genAttrs systems f;
    in
    {
      packages = forAllSystems (system: import ./nix { pkgs = import nixpkgs { inherit system; }; });
      nixosModules.default = import ./nix/module.nix;
    };
}