about summary refs log tree commit diff
path: root/nixos/modules/profiles
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2023-01-04 18:14:12 +0100
committerlassulus <lassulus@lassul.us>2023-01-04 19:11:41 +0100
commit5464e0a0182603b13d9d8779bffb417e01b1273f (patch)
tree1a8fdb5784b96a601ed2f3828ac87d343be99939 /nixos/modules/profiles
parent60ad423963e839838c72cd7a299eed0bf1ca00ff (diff)
nixos/misc: add VARIANT_ID in /etc/os-release for identifying nixos installer
This is a feature useful for nixos-remote and other installation tools
that try to identify if the remote machine has been successfully booted
into an installer.
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r--nixos/modules/profiles/installation-device.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix
index ae9be08c8d859..4d9bd69666c09 100644
--- a/nixos/modules/profiles/installation-device.nix
+++ b/nixos/modules/profiles/installation-device.nix
@@ -20,6 +20,7 @@ with lib;
     ];
 
   config = {
+    system.nixos.variant_id = lib.mkDefault "installer";
 
     # Enable in installer, even if the minimal profile disables it.
     documentation.enable = mkImageMediaOverride true;