openstack-image-zfs: make the generated configuration.nix valid

Drops the wrong expandOnBoot option (defaults to all) and mark ZFS as enabled.
This commit is contained in:
Graham Christensen 2022-03-08 09:25:26 -05:00
parent 9e3dab7d2e
commit b4c495aeff

View file

@ -55,8 +55,9 @@ in
configFile = pkgs.writeText "configuration.nix"
''
{
imports = [ <nixpkgs/nixos/modules/virtualisation/openstack-config.nix> ];
{ modulesPath, ... }: {
imports = [ "''${modulesPath}/virtualisation/openstack-config.nix" ];
openstack.zfs.enable = true;
}
'';