Clean up the vm script creation
This commit is contained in:
parent
90368fcda8
commit
7f862474b4
1 changed files with 3 additions and 1 deletions
|
@ -122,6 +122,8 @@ in {
|
||||||
vm
|
vm
|
||||||
else
|
else
|
||||||
let
|
let
|
||||||
|
command = "${vm}/bin/run-${config.system.name}-vm";
|
||||||
|
|
||||||
prefix =
|
prefix =
|
||||||
lib.concatStringsSep " " (
|
lib.concatStringsSep " " (
|
||||||
lib.optionals config.virtualisation.runAsRoot (
|
lib.optionals config.virtualisation.runAsRoot (
|
||||||
|
@ -138,7 +140,7 @@ in {
|
||||||
name = "run-${config.system.name}-vm";
|
name = "run-${config.system.name}-vm";
|
||||||
text = lib.strings.concatLines (
|
text = lib.strings.concatLines (
|
||||||
[
|
[
|
||||||
"${prefix} ${vm}/bin/run-${config.system.name}-vm ${suffix}"
|
"${prefix} ${command} ${suffix}"
|
||||||
] ++ (
|
] ++ (
|
||||||
let
|
let
|
||||||
spice = config.virtualisation.qemu.spice;
|
spice = config.virtualisation.qemu.spice;
|
||||||
|
|
Loading…
Reference in a new issue