diff --git a/hosts/gerrit01/default.nix b/hosts/gerrit01/default.nix index 6a95fc2..5527fb6 100755 --- a/hosts/gerrit01/default.nix +++ b/hosts/gerrit01/default.nix @@ -47,11 +47,11 @@ }; bagel.nixpkgs.one-way-sync = let - mkNixpkgsJob = { timer, branchName }: { + mkNixpkgsJob = { timer, branchName, localRefspec ? null }: { name = "nixpkgs-${branchName}"; fromUri = "https://github.com/NixOS/nixpkgs"; fromRefspec = branchName; - localRefspec = branchName; + localRefspec = if localRefspec != null then localRefspec else branchName; inherit timer; }; in @@ -63,7 +63,8 @@ branches."refs/heads/main" = mkNixpkgsJob { timer = "hourly"; - branchName = "main"; + branchName = "master"; + localRefspec = "main"; }; branches."refs/heads/staging" = mkNixpkgsJob {