anchor.diff:  
     config = mkIf cfg.enable {
   
  -    environment.systemPackages = [ pkgs.lxd ];
  +    environment.systemPackages = [ cfg.package ];
   
       security.apparmor = {
         enable = true;
         profiles = [
  -        "${pkgs.lxc}/etc/apparmor.d/usr.bin.lxc-start"
  -        "${pkgs.lxc}/etc/apparmor.d/lxc-containers"
  +        "${cfg.lxcPackage}/etc/apparmor.d/usr.bin.lxc-start"
  +        "${cfg.lxcPackage}/etc/apparmor.d/lxc-containers"
         ];
  -      packages = [ pkgs.lxc ];
  +      packages = [ cfg.lxcPackage ];
       };
   
       systemd.services.lxd = {
  
positive.code: let
  
    cfg = config.virtualisation.lxd;
  
  in
  
  
negative.code:       wantedBy = [ "multi-user.target" ];
        after = [ "systemd-udev-settle.service" ];
  
        path = lib.optional cfg.zfsSupport cfg.zfsPackage;
  
        preStart = ''
          mkdir -m 0755 -p /var/lib/lxc/rootfs
        '';
  
        serviceConfig = {
          ExecStart = "@${cfg.package.bin}/bin/lxd lxd --group lxd";
          Type = "simple";
          KillMode = "process"; # when stopping, leave the containers alone
          LimitMEMLOCK = "infinity";
  