Commit 3a5ff9a6 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

nixos/release.nix: remove warning about missing state version for images

parent c9956c11
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -44,9 +44,12 @@ let
  pkgs = import ./.. { system = "x86_64-linux"; };


  versionModule =
    { system.nixos.versionSuffix = versionSuffix;
  versionModule = { config, ... }: {
    system.nixos.versionSuffix = versionSuffix;
    system.nixos.revision = nixpkgs.rev or nixpkgs.shortRev;

    # At creation time we do not have state yet, so just default to latest.
    system.stateVersion = config.system.nixos.version;
  };

  makeModules = module: rest: [ configuration versionModule module rest ];