summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2022-05-20 13:06:50 +0000
committerAlyssa Ross <hi@alyssa.is>2022-05-20 13:06:50 +0000
commit4004fc8778b1f64bd93f903bbb053cd2ff11a04e (patch)
treea01f4590fd7937f191a0742af2b9d01adb1a0423
parentfe97bae9570fb8df19a5c635be97734df0bae8fe (diff)
downloadspectrum-4004fc8778b1f64bd93f903bbb053cd2ff11a04e.tar
spectrum-4004fc8778b1f64bd93f903bbb053cd2ff11a04e.tar.gz
spectrum-4004fc8778b1f64bd93f903bbb053cd2ff11a04e.tar.bz2
spectrum-4004fc8778b1f64bd93f903bbb053cd2ff11a04e.tar.lz
spectrum-4004fc8778b1f64bd93f903bbb053cd2ff11a04e.tar.xz
spectrum-4004fc8778b1f64bd93f903bbb053cd2ff11a04e.tar.zst
spectrum-4004fc8778b1f64bd93f903bbb053cd2ff11a04e.zip
img/installer: set system.stateVersion
Not setting this will produce a warning when we update Nixpkgs.  Since
there isn't any state on the Spectrum installer image, we can just
always set it to the latest known value.  This is the same approach
taken by the NixOS tests and installer.
-rw-r--r--img/installer/configuration.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/img/installer/configuration.nix b/img/installer/configuration.nix
index e9a2865..b403d45 100644
--- a/img/installer/configuration.nix
+++ b/img/installer/configuration.nix
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: MIT
 # SPDX-FileCopyrightText: 2021-2022 Alyssa Ross <hi@alyssa.is>
 
-{ modulesPath, pkgs, ... }:
+{ lib, modulesPath, pkgs, ... }:
 
 let
   inherit (builtins) readFile;
@@ -52,4 +52,6 @@ in
   systemd.tmpfiles.rules = [
     "L+ /var/lib/eos-image-defaults/vendor-customer-support.ini - - - - ${app/vendor-customer-support.ini}"
   ];
+
+  system.stateVersion = lib.trivial.release;
 }