summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-08-01 19:33:23 +0000
committerAlyssa Ross <hi@alyssa.is>2023-08-01 19:33:23 +0000
commit61d0dc306cc7eadd14388c7a1a23f49feb62376c (patch)
treea1c106b9a9481dbf63dbc1b217010dfe7f2d1e2f
parentcb4ff117d0ac03b7b84e7ed9e4568716b4ccab26 (diff)
downloadspectrum-61d0dc306cc7eadd14388c7a1a23f49feb62376c.tar
spectrum-61d0dc306cc7eadd14388c7a1a23f49feb62376c.tar.gz
spectrum-61d0dc306cc7eadd14388c7a1a23f49feb62376c.tar.bz2
spectrum-61d0dc306cc7eadd14388c7a1a23f49feb62376c.tar.lz
spectrum-61d0dc306cc7eadd14388c7a1a23f49feb62376c.tar.xz
spectrum-61d0dc306cc7eadd14388c7a1a23f49feb62376c.tar.zst
spectrum-61d0dc306cc7eadd14388c7a1a23f49feb62376c.zip
host/rootfs: set stateVersion for NixOS import
Not doing this generates a warning with recent Nixpkgs.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
-rw-r--r--host/rootfs/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix
index 46b6659..b0fe4d7 100644
--- a/host/rootfs/default.nix
+++ b/host/rootfs/default.nix
@@ -77,6 +77,8 @@ let
 
   nixosAllHardware = nixos ({ modulesPath, ... }: {
     imports = [ (modulesPath + "/profiles/all-hardware.nix") ];
+
+    system.stateVersion = lib.trivial.release;
   });
 
   kernel = pkgs.linux_latest;