Merge pull request #25494 from michalpalka/xendomains

xen service: Add the possibility to override configuration of xendomains
This commit is contained in:
Joachim F 2017-05-06 13:55:59 +01:00 committed by GitHub
commit 6ef9875edb

View file

@ -111,6 +111,19 @@ in
'';
};
virtualisation.xen.domains = {
extraConfig = mkOption {
type = types.string;
default = "";
description =
''
Options defined here will override the defaults for xendomains.
The default options can be seen in the file included from
/etc/default/xendomains.
'';
};
};
virtualisation.xen.trace =
mkOption {
default = false;
@ -216,7 +229,11 @@ in
{ source = "${cfg.package}/etc/xen/scripts";
target = "xen/scripts";
}
{ source = "${cfg.package}/etc/default/xendomains";
{ text = ''
source ${cfg.package}/etc/default/xendomains
${cfg.domains.extraConfig}
'';
target = "default/xendomains";
}
];