summary refs log tree commit diff
path: root/pkgs/bluesky/pds
ModeNameSize
-rw-r--r--package-lock.json209894log plain
-rw-r--r--package.nix2393log plain
41'>41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
{
  me,
  pkgs,
  lib,
  self,
  ...
}:

let
  inherit (lib) mkIf mkMerge;

  bismuthCache = {
    substituters = [ "http://bismuth.serval-moth.ts.net:3000" ];
    trusted-public-keys = [ "bismuth-1:Fkyzfd9gfMUVKq/KfNClHaB2rUiAGtXTzYu96oZteKQ=" ];
  };

  useBismuthCache = false;
  # useBismuthCache = me.name != "bismuth";
in
{
  nix = {
    # enable lix implementation
    package = pkgs.lixPackageSets.stable.lix;

    # add compat scripts to the environment,
    # to allow nixos-option to find the configuration
    nixPath = [
      "nixpkgs=${self}/compat"
      "nixos-config=${self}/compat/nixos"
    ];

    settings = mkMerge [
      {
        experimental-features = [
          "flakes"
          "nix-command"
        ];
        trusted-users = [
          "mel"
        ];
        # usually my builders have faster connections
        builders-use-substitutes = true;
        # don't wait too long on caches that are down
        connect-timeout = 3;
        # yes nix, i know my flake is dirty!!!
        warn-dirty = false;
      }
      (mkIf useBismuthCache bismuthCache)
    ];

    distributedBuilds = true;
    buildMachines =
      let
        tailnet = n: "${n}.serval-moth.ts.net";

        defaults = {
          sshUser = "mel";
          systems = [
            "x86_64-linux"
            "i686-linux"
          ];
          supportedFeatures = [
            "kvm"
            "big-parallel"
            "nixos-test"
            "benchmark"
          ];
        };
      in
      lib.filter (m: m.hostName != me.name) [
        {
          hostName = tailnet "renard";
          maxJobs = 8;
          speedFactor = 2;
          publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUovcURMNys4NiswSDZOa1BzL3c0R1lpV1F3VC80WUF4OU8ySjdzTGtLbWYgcm9vdEByZW5hcmQK";
          inherit (defaults) sshUser systems supportedFeatures;
        }
        {
          hostName = tailnet "lapin";
          maxJobs = 4;
          speedFactor = 1;
          publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUdNRC9FTjl2OFlnSE91NFlHNzRRK3h2d2pDZHhiTUlaam5RY1VYaTBRaFogcm9vdEBsYXBpbgo=";
          systems = [ "aarch64-linux" ];
          inherit (defaults) sshUser supportedFeatures;
        }
      ];
  };
}