Skip to content

Commit

Permalink
modules/overlay: add assertion to make sure we're building on 23.11 o…
Browse files Browse the repository at this point in the history
…r higher
  • Loading branch information
K900 committed Nov 19, 2023
1 parent 74fdef8 commit be3166d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/overlay.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
nixpkgs.overlays = [
(import ../overlay.nix)
];

assertions = [
{
assertion = lib.versionAtLeast lib.version "23.11";
message = "Jovian NixOS is only validated with the nixos-unstable branch of Nixpkgs. Please upgrade your Nixpkgs version.";
}
];
}

0 comments on commit be3166d

Please sign in to comment.