From 871a98c01069c37f9f78dabac7105a0717e26871 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 17 Nov 2023 15:35:09 +0300 Subject: [PATCH] modules/overlay: add assertion to make sure we're building on 23.11 or higher --- modules/overlay.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/overlay.nix b/modules/overlay.nix index 1d4eebb7..63bf85f8 100644 --- a/modules/overlay.nix +++ b/modules/overlay.nix @@ -1,7 +1,14 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { nixpkgs.overlays = [ (import ../overlay.nix) ]; + + assertions = [ + { + assertion = lib.versionAtLeast lib.version "23.11"; + message = "Jovian NixOS currently requires Nixpkgs 23.11 or newer to build."; + } + ]; }