about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-08-12 08:44:17 +0300
committerCole Helbling <cole.e.helbling@outlook.com>2022-12-08 13:50:04 -0800
commite69c37eae9b4b8fee2dc0397bec57163a732ea10 (patch)
tree0aa62455f50f12ccc4b2705d0ae6bcd8a050ecbe /nixos/modules/system
parente9c85d6d0f5d76f82d99bfc90f672afefdadc358 (diff)
nixos/activation: don't generate bootspec for containers
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/activation/top-level.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix
index 9237c1c2f6e51..9733bc55ae1bb 100644
--- a/nixos/modules/system/activation/top-level.nix
+++ b/nixos/modules/system/activation/top-level.nix
@@ -87,7 +87,9 @@ let
 
       echo -n "${toString config.system.extraDependencies}" > $out/extra-dependencies
 
-      ${bootSpec.writer}
+      ${optionalString (!config.boot.isContainer) ''
+        ${bootSpec.writer}
+      ''}
 
       ${config.system.extraSystemBuilderCmds}
     '';