anchor.diff:          };
         }))) cfg;
   
  -  systemdAdmon =  mapAttrs'
  -   (name : cfg: (nameValuePair "beegfsAdmon-${name}" (mkIf cfg.admon.enable {
  -     path = with pkgs; [ beegfs ];
  -     wantedBy = [ "multi-user.target" ];
  -     after = [ "network-online.target" "zfs.target" ];
  -     serviceConfig = {
  -       Type = "simple";
  -       ExecStart = ''
  -         ${pkgs.beegfs}/bin/beegfs-admon  \
  -           cfgFile=${configAdmon name cfg} \
  -           pidFile=/run/beegfs-admon-${name}.pid
  -       '';
  -       PIDfile = "/run/beegfs-admon-${name}.pid"; 
  -       TimeoutStopSec = "300";
  -     };
  -   }))) cfg;
  -       
  -  systemdMgmtd =  mapAttrs'
  -   (name : cfg: (nameValuePair "beegfsMgmtd-${name}" (mkIf cfg.mgmtd.enable {
  -     path = with pkgs; [ beegfs ];
  -     wantedBy = [ "multi-user.target" ];
  -     after = [ "network-online.target" "zfs.target" ];
  -     serviceConfig = {
  -       Type = "simple";
  -       ExecStart = ''
  -         ${pkgs.beegfs}/bin/beegfs-mgmtd  \
  -           cfgFile=${configMgmtd name cfg} \
  -           pidFile=/run/beegfs-mgmtd-${name}.pid
  -       '';
  -       PIDfile = "/run/beegfs-mgmtd-${name}.pid"; 
  -       TimeoutStopSec = "300";
  -     };
  -   }))) cfg;
  -       
  -  systemdMeta =  mapAttrs'
  -   (name : cfg: (nameValuePair "beegfsMeta-${name}" (mkIf cfg.meta.enable {
  -      path = with pkgs; [ beegfs ];
  -      wantedBy = [ "multi-user.target" ];
  -      after = [ "network-online.target" "zfs.target" ];
  -      serviceConfig = {
  -        Type = "simple";
  -        ExecStart = ''${pkgs.beegfs}/bin/beegfs-meta \
  -          cfgFile=${configMeta name cfg} \
  -          pidFile=/run/beegfs-mgmtd-${name}.pid
  -        ''; 
  -        PIDfile = "/run/beegfs-meta-${name}.pid";
  -        TimeoutStopSec = "300";
  -      };
  -   }))) cfg;
  -       
  -  systemdStorage =  mapAttrs'
  -   (name : cfg: (nameValuePair "beegfsStorage-${name}" (mkIf cfg.storage.enable {
  -      path = with pkgs; [ beegfs ];
  -      wantedBy = [ "multi-user.target" ];
  -      after = [ "network-online.target" "zfs.target" ];
  -      serviceConfig = {
  -        Type = "simple";
  -        ExecStart = '' ${pkgs.beegfs}/bin/beegfs-storage \
  -          cfgFile=${configStorage name cfg} \
  -          pidFile=/run/beegfs-mgmtd-${name}.pid
  -        '';
  -        PIDfile = "/run/beegfs-storage-${name}.pid"; 
  -        TimeoutStopSec = "300";
  -     };
  -  }))) cfg;
  -
   
   in
     {
       ###### interface 
   
       options = {
  +      services.beegfsEnable = mkEnableOption "BeeGFS";
  +
         services.beegfs = mkOption {
           default = {};
           description = ''
  
positive.code:             type = types.lines;
              default = "";
              description = ''
                Addional lines for beegfs-admon.conf. See documentation
                for further details.
              '';
            };
  
negative.code:             type = types.lines;
              default = "";
              description = ''
                Additional lines for beegfs-client.conf. See documentation
                for further details.
              '';
            };
  