Skip to content

Commit 53d2c54

Browse files
authored
Merge pull request #620 from NixOS/hydra-main
flake.nix: Track hydra master branch
2 parents 61cf7f2 + 40fee33 commit 53d2c54

File tree

4 files changed

+33
-116
lines changed

4 files changed

+33
-116
lines changed

build/common.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515

1616
nixpkgs.config.allowUnfree = true;
1717

18+
nixpkgs.overlays = [
19+
(_prev: final: {
20+
# fails to find nix-main against nix 2.28.x
21+
# https://github.com/NixOS/infra/pull/620#issuecomment-2784979947
22+
nixos-option = final.nixos-option.override { nix = pkgs.nixVersions.nix_2_24; };
23+
})
24+
];
25+
1826
hardware.enableAllFirmware = true;
1927
hardware.cpu.amd.updateMicrocode = true;
2028
hardware.cpu.intel.updateMicrocode = true;

build/flake-module.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ let
1414
nixpkgs.overlays = [
1515
inputs.nix.overlays.default
1616
inputs.hydra.overlays.default
17-
inputs.nixos-channel-scripts.overlays.default
17+
(
18+
final: prev:
19+
inputs.nixos-channel-scripts.overlays.default (
20+
final
21+
// {
22+
# Doesn't yet work with Nix 2.28
23+
# https://github.com/NixOS/nixos-channel-scripts/issues/79
24+
nix = final.nixVersions.nix_2_24;
25+
}
26+
) prev
27+
)
1828
inputs.rfc39.overlays.default
1929
];
2030
};

flake.lock

Lines changed: 13 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@
1010
agenix.url = "github:ryantm/agenix";
1111
agenix.inputs.nixpkgs.follows = "nixpkgs";
1212

13-
nix-eval-jobs.url = "github:nix-community/nix-eval-jobs?rev=ca94443b9621c610af09ff1806434bd84cd817e6";
14-
nix-eval-jobs.inputs.nixpkgs.follows = "nixpkgs";
15-
16-
hydra.url = "github:NixOS/hydra/hydra.nixos.org";
13+
hydra.url = "github:NixOS/hydra";
1714
hydra.inputs.nixpkgs.follows = "nixpkgs";
18-
hydra.inputs.nix-eval-jobs.follows = "nix-eval-jobs";
1915
nix.follows = "hydra/nix";
2016

2117
nixos-channel-scripts.url = "github:NixOS/nixos-channel-scripts";

0 commit comments

Comments
 (0)