diff options
author | Michał Pałka <michal.palka@chalmers.se> | 2017-05-04 08:31:40 +0000 |
---|---|---|
committer | Michał Pałka <michal.palka@chalmers.se> | 2017-05-04 08:31:40 +0000 |
commit | 3b0daa1a28a94725122ffcd0f39b452e084c351e (patch) | |
tree | b9cda9142bf6aa63cb3d37cfb28fc8300fe1d8ea /nixos/modules/virtualisation | |
parent | f556d94527a4246c044586fa47904643b8c4a89d (diff) | |
download | nixlib-3b0daa1a28a94725122ffcd0f39b452e084c351e.tar nixlib-3b0daa1a28a94725122ffcd0f39b452e084c351e.tar.gz nixlib-3b0daa1a28a94725122ffcd0f39b452e084c351e.tar.bz2 nixlib-3b0daa1a28a94725122ffcd0f39b452e084c351e.tar.lz nixlib-3b0daa1a28a94725122ffcd0f39b452e084c351e.tar.xz nixlib-3b0daa1a28a94725122ffcd0f39b452e084c351e.tar.zst nixlib-3b0daa1a28a94725122ffcd0f39b452e084c351e.zip |
xen service: Add the possibility to override configuration of xendomains
Add the option virtualisation.xen.domain.extraConfig, which allows overriding options passed to xendomains.
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/xen-dom0.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/xen-dom0.nix b/nixos/modules/virtualisation/xen-dom0.nix index 1f5b6bd1d808..6e1cb08485c7 100644 --- a/nixos/modules/virtualisation/xen-dom0.nix +++ b/nixos/modules/virtualisation/xen-dom0.nix @@ -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"; } ]; |