Skip to content

Commit

Permalink
Merge pull request #220 from Jovian-Experiments/assert-version
Browse files Browse the repository at this point in the history
modules/overlay: add assertion to make sure we're building on 23.11 or higher
  • Loading branch information
K900 authored Nov 19, 2023
2 parents 9a1eee0 + be3166d commit 66444eb
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 66444eb

Please sign in to comment.