anchor.diff:            <command>lxc</command> command line tool, among others.
           '';
         };
  +
  +      package = mkOption {
  +        type = types.package;
  +        default = pkgs.lxd;
  +        description = ''
  +          The LXD package to use.
  +        '';
  +      };
  +
  +      lxcPackage = mkOption {
  +        type = types.package;
  +        default = pkgs.lxc;
  +        description = ''
  +          The LXC package to use with LXD (required for AppArmor profiles).
  +        '';
  +      };
  +
  +      zfsPackage = mkOption {
  +        type = types.package;
  +        default = with pkgs; if zfsCfg.enableUnstable then zfsUnstable else zfs;
  +        defaultText = "pkgs.zfs";
  +        description = ''
  +          The ZFS package to use with LXD.
  +        '';
  +      };
  +
         zfsSupport = mkOption {
           type = types.bool;
           default = false;
           description = ''
  -          enables lxd to use zfs as a storage for containers.
  +          Enables lxd to use zfs as a storage for containers.
  +
             This option is enabled by default if a zfs pool is configured
             with nixos.
           '';
  
positive.code: 
    config = mkIf cfg.enable {
  
      environment.systemPackages = [ pkgs.lxd ];
  
      security.apparmor = {
        enable = true;
        profiles = [
          "${pkgs.lxc}/etc/apparmor.d/usr.bin.lxc-start"
          "${pkgs.lxc}/etc/apparmor.d/lxc-containers"
        ];
        packages = [ pkgs.lxc ];
      };
  
      systemd.services.lxd = {
  
negative.code: let
  
    cfg = config.virtualisation.lxd;
    zfsCfg = config.boot.zfs;
  
  in
  
  