diff --git a/config/c3d2.nix b/config/c3d2.nix index ba6370ac..d46123be 100644 --- a/config/c3d2.nix +++ b/config/c3d2.nix @@ -157,7 +157,7 @@ in { (builtins.readFile ../hosts/hydra/cache-pub.key) ]; substituters = lib.mkIf (config.networking.hostName != "hydra") ( - lib.mkBefore [ "https://hydra.hq.c3d2.de" ] + lib.mkBefore [ "https://nix-serve.hq.c3d2.de" ] ); }; gc = { diff --git a/flake.lock b/flake.lock index c667b470..899d6176 100644 --- a/flake.lock +++ b/flake.lock @@ -132,6 +132,23 @@ "type": "github" } }, + "harmonia": { + "flake": false, + "locked": { + "lastModified": 1664135560, + "narHash": "sha256-ODQX5+NTqztVtbqdubD1ED+0t6MDeQYnhqhgmUA5IGM=", + "owner": "astro", + "repo": "harmonia", + "rev": "ee0915762c43c71e3c76bd9d777ae7d99992a65f", + "type": "github" + }, + "original": { + "owner": "astro", + "ref": "flake", + "repo": "harmonia", + "type": "github" + } + }, "heliwatch": { "inputs": { "fenix": [ @@ -623,6 +640,7 @@ "eris": "eris", "fenix": "fenix", "flake-utils": "flake-utils", + "harmonia": "harmonia", "heliwatch": "heliwatch", "hydra": "hydra", "hydra-ca": "hydra-ca", diff --git a/flake.nix b/flake.nix index 83e83cdf..ccfd9480 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,12 @@ inputs.nixpkgs.follows = "nixos"; }; flake-utils.url = "github:numtide/flake-utils"; + harmonia = { + # TODO: pending https://github.com/helsinki-systems/harmonia/pull/39 + # url = "github:helsinki-systems/harmonia"; + url = "github:astro/harmonia/flake"; + flake = false; + }; heliwatch = { url = "git+https://gitea.c3d2.de/astro/heliwatch.git"; inputs = { @@ -166,7 +172,7 @@ }; }; - outputs = inputs@{ self, eris, fenix, heliwatch, microvm, naersk, nixos, nixos-hardware, nixos-unstable, oparl-scraper, riscv64, scrapers, secrets, sshlogd, sops-nix, spacemsg, syndicate, ticker, tigger, yammat, zentralwerk, ... }: + outputs = inputs@{ self, eris, fenix, harmonia, heliwatch, microvm, naersk, nixos, nixos-hardware, nixos-unstable, oparl-scraper, riscv64, scrapers, secrets, sshlogd, sops-nix, spacemsg, syndicate, ticker, tigger, yammat, zentralwerk, ... }: let inherit (nixos) lib; forAllSystems = lib.genAttrs [ "aarch64-linux" "x86_64-linux" ]; @@ -312,7 +318,7 @@ let host = getHostAddr name; target = ''root@"${host}"''; - rebuildArg = "--flake ${self}#${name} --option extra-substituters https://hydra.hq.c3d2.de"; + rebuildArg = "--flake ${self}#${name} --option extra-substituters https://nix-serve.hq.c3d2.de"; hostConfig = self.nixosConfigurations."${name}".config; profile = hostConfig.system.build.toplevel; # let /var/lib/microvm/*/flake point to the flake-update branch so that @@ -344,7 +350,7 @@ ssh ${target} -- bash -e <