staging-nixos merge for 2025-11-14 (#461577)
This commit is contained in:
@@ -194,8 +194,7 @@ class StartCommand:
|
||||
|
||||
|
||||
class NixStartScript(StartCommand):
|
||||
"""A start script from nixos/modules/virtualiation/qemu-vm.nix
|
||||
that also satisfies the requirement of the BaseStartCommand.
|
||||
"""A start script from nixos/modules/virtualiation/qemu-vm.nix.
|
||||
These Nix commands have the particular characteristic that the
|
||||
machine name can be extracted out of them via a regex match.
|
||||
(Admittedly a _very_ implicit contract, evtl. TODO fix)
|
||||
|
||||
@@ -53,8 +53,6 @@ let
|
||||
${config.boot.bootspec.writer}
|
||||
${optionalString config.boot.bootspec.enableValidation ''${config.boot.bootspec.validator} "$out/${config.boot.bootspec.filename}"''}
|
||||
''}
|
||||
|
||||
${config.system.extraSystemBuilderCmds}
|
||||
'';
|
||||
|
||||
# Putting it all together. This builds a store path containing
|
||||
@@ -129,6 +127,7 @@ in
|
||||
[ "system" "replaceRuntimeDependencies" ]
|
||||
[ "system" "replaceDependencies" "replacements" ]
|
||||
)
|
||||
(mkRenamedOptionModule [ "system" "extraSystemBuilderCmds" ] [ "system" "systemBuilderCommands" ])
|
||||
];
|
||||
|
||||
options = {
|
||||
@@ -213,15 +212,6 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
system.extraSystemBuilderCmds = mkOption {
|
||||
type = types.lines;
|
||||
internal = true;
|
||||
default = "";
|
||||
description = ''
|
||||
This code will be added to the builder creating the system store path.
|
||||
'';
|
||||
};
|
||||
|
||||
system.extraDependencies = mkOption {
|
||||
type = types.listOf types.pathInStore;
|
||||
default = [ ];
|
||||
@@ -343,7 +333,7 @@ in
|
||||
}
|
||||
];
|
||||
|
||||
system.extraSystemBuilderCmds =
|
||||
system.systemBuilderCommands =
|
||||
optionalString config.system.copySystemConfiguration ''
|
||||
ln -s '${import ../../../lib/from-env.nix "NIXOS_CONFIG" <nixos-config>}' \
|
||||
"$out/configuration.nix"
|
||||
|
||||
@@ -64,7 +64,7 @@ in
|
||||
boot.loader.grub.enable = false;
|
||||
|
||||
specialisation = rec {
|
||||
brokenInitInterface.configuration.config.system.extraSystemBuilderCmds = ''
|
||||
brokenInitInterface.configuration.config.system.systemBuilderCommands = ''
|
||||
echo "systemd 0" > $out/init-interface-version
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user