Merge pull request #25494 from michalpalka/xendomains

xen service: Add the possibility to override configuration of xendomains

Changed files
+18 -1
nixos
modules
virtualisation
+18 -1
nixos/modules/virtualisation/xen-dom0.nix
···
'';
};
+
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;
···
{ 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";
}
];