Merge pull request #25494 from michalpalka/xendomains
xen service: Add the possibility to override configuration of xendomains
This commit is contained in:
commit
6ef9875edb
1 changed files with 18 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue